aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs18
1 files changed, 16 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 5394089d220..cc1a82d04ef 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -2837,7 +2837,14 @@ impl Document {
let trusted_pending = Trusted::new(pending);
let trusted_promise = TrustedPromise::new(promise.clone());
let handler = ElementPerformFullscreenEnter::new(trusted_pending, trusted_promise, error);
- let script_msg = CommonScriptMsg::Task(ScriptThreadEventCategory::EnterFullscreen, handler, pipeline_id);
+ // NOTE: This steps should be running in parallel
+ // https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
+ let script_msg = CommonScriptMsg::Task(
+ ScriptThreadEventCategory::EnterFullscreen,
+ handler,
+ pipeline_id,
+ TaskSourceName::DOMManipulation,
+ );
let msg = MainThreadScriptMsg::Common(script_msg);
window.main_thread_script_chan().send(msg).unwrap();
@@ -2870,7 +2877,14 @@ impl Document {
let trusted_promise = TrustedPromise::new(promise.clone());
let handler = ElementPerformFullscreenExit::new(trusted_element, trusted_promise);
let pipeline_id = Some(global.pipeline_id());
- let script_msg = CommonScriptMsg::Task(ScriptThreadEventCategory::ExitFullscreen, handler, pipeline_id);
+ // NOTE: This steps should be running in parallel
+ // https://fullscreen.spec.whatwg.org/#exit-fullscreen
+ let script_msg = CommonScriptMsg::Task(
+ ScriptThreadEventCategory::ExitFullscreen,
+ handler,
+ pipeline_id,
+ TaskSourceName::DOMManipulation,
+ );
let msg = MainThreadScriptMsg::Common(script_msg);
window.main_thread_script_chan().send(msg).unwrap();