mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove Untraceable from utils.rs
This commit is contained in:
parent
dcbb941300
commit
b7c3a1cd5d
2 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue