aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index b0b55eeb43a..b9833da8e3f 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -715,10 +715,6 @@ pub struct ScriptThread {
#[no_trace]
player_context: WindowGLContext,
- /// A mechanism to force the compositor's event loop to process events.
- #[no_trace]
- event_loop_waker: Option<Box<dyn EventLoopWaker>>,
-
/// A set of all nodes ever created in this script thread
node_ids: DomRefCell<HashSet<String>>,
@@ -1416,7 +1412,6 @@ impl ScriptThread {
replace_surrogates: opts.debug.replace_surrogates,
user_agent,
player_context: state.player_context,
- event_loop_waker: state.event_loop_waker,
node_ids: Default::default(),
is_user_interacting: Cell::new(false),
@@ -3295,6 +3290,7 @@ impl ScriptThread {
self.timer_task_source(incomplete.pipeline_id),
self.websocket_task_source(incomplete.pipeline_id),
);
+
// Create the window and document objects.
let window = Window::new(
self.js_runtime.clone(),
@@ -3333,7 +3329,6 @@ impl ScriptThread {
self.replace_surrogates,
self.user_agent.clone(),
self.player_context.clone(),
- self.event_loop_waker.as_ref().map(|w| (*w).clone_box()),
self.gpu_id_hub.clone(),
incomplete.inherited_secure_context,
);