Pass a JSRef to RegisterBindings::Register.

JS<T> should only be used for members of traced structures; the correct type
for arguments is JSRef.
This commit is contained in:
Ms2ger 2014-06-11 12:35:14 +02:00
parent 57e8be0c8f
commit 44f57ae6da
2 changed files with 3 additions and 3 deletions

View file

@ -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);