Remove Untraceable from utils.rs

This commit is contained in:
Manish Goregaokar 2014-09-29 07:03:48 +05:30
parent dcbb941300
commit b7c3a1cd5d
2 changed files with 4 additions and 5 deletions

View file

@ -53,12 +53,12 @@ impl BrowserContext {
let js_info = page.js_info();
let handler = js_info.as_ref().unwrap().dom_static.windowproxy_handler;
assert!(handler.deref().is_not_null());
assert!(handler.is_not_null());
let parent = win.deref().reflector().get_jsobject();
let cx = js_info.as_ref().unwrap().js_context.deref().ptr;
let wrapper = with_compartment(cx, parent, || unsafe {
WrapperNew(cx, parent, *handler.deref())
WrapperNew(cx, parent, handler)
});
assert!(wrapper.is_not_null());
self.window_proxy = wrapper;