Rewild Your Web
at main 28 lines 1.3 kB view raw
1--- original 2+++ modified 3@@ -31,6 +31,7 @@ 4 use crate::dom::bindings::str::DOMString; 5 use crate::dom::csp::CspReporting; 6 use crate::dom::document::RefreshRedirectDue; 7+use crate::dom::document_event_handler::LongPressContextMenuCallback; 8 use crate::dom::eventsource::EventSourceTimeoutCallback; 9 use crate::dom::global_scope_script_execution::{ErrorReporting, RethrowErrors}; 10 use crate::dom::globalscope::GlobalScope; 11@@ -127,6 +128,7 @@ 12 #[cfg(feature = "testbinding")] 13 TestBindingCallback(TestBindingCallback), 14 RefreshRedirectDue(RefreshRedirectDue), 15+ LongPressContextMenu(LongPressContextMenuCallback), 16 /// <https://html.spec.whatwg.org/multipage/#run-steps-after-a-timeout> 17 RunStepsAfterTimeout { 18 /// Step 1. timerKey 19@@ -153,6 +155,9 @@ 20 OneshotTimerCallback::RefreshRedirectDue(callback) => { 21 callback.invoke(CanGc::from_cx(cx)) 22 }, 23+ OneshotTimerCallback::LongPressContextMenu(callback) => { 24+ callback.invoke(CanGc::from_cx(cx)) 25+ }, 26 OneshotTimerCallback::RunStepsAfterTimeout { completion, .. } => { 27 // <https://html.spec.whatwg.org/multipage/#run-steps-after-a-timeout> 28 // Step 4.4 Perform completionSteps.