From 2aef518ce672b8037913fb1a33980475e02259f8 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 14 Jul 2016 13:05:01 -0400 Subject: Make task queue API usable from non-main threads. --- components/script/script_thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 788ec212a72..4fd9bc32bcc 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1227,7 +1227,7 @@ impl ScriptThread { // https://html.spec.whatwg.org/multipage/#the-end step 7 let handler = box DocumentProgressHandler::new(Trusted::new(doc)); - self.dom_manipulation_task_source.queue(handler, doc.window()).unwrap(); + self.dom_manipulation_task_source.queue(handler, GlobalRef::Window(doc.window())).unwrap(); self.constellation_chan.send(ConstellationMsg::LoadComplete(pipeline)).unwrap(); } -- cgit v1.2.3