Rewild Your Web
web
browser
dweb
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@@ -151,6 +153,7 @@
20 #[cfg(feature = "testbinding")]
21 OneshotTimerCallback::TestBindingCallback(callback) => callback.invoke(),
22 OneshotTimerCallback::RefreshRedirectDue(callback) => callback.invoke(can_gc),
23+ OneshotTimerCallback::LongPressContextMenu(callback) => callback.invoke(can_gc),
24 OneshotTimerCallback::RunStepsAfterTimeout { completion, .. } => {
25 // <https://html.spec.whatwg.org/multipage/#run-steps-after-a-timeout>
26 // Step 4.4 Perform completionSteps.