From 44f57ae6da1024a1f9053e8aefda31e6426ab3ba Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 11 Jun 2014 12:35:14 +0200 Subject: Pass a JSRef to RegisterBindings::Register. JS should only be used for members of traced structures; the correct type for arguments is JSRef. --- src/components/script/script_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/script/script_task.rs') diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index e90e263fbd5..c733f6acaf9 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -956,7 +956,7 @@ impl ScriptTask { with_compartment((**cx).ptr, window.reflector().get_jsobject(), || { let mut js_info = page.mut_js_info(); - RegisterBindings::Register(&window.unrooted(), js_info.get_mut_ref()); + RegisterBindings::Register(&*window, js_info.get_mut_ref()); }); self.compositor.set_ready_state(Loading); -- cgit v1.2.3