Privatize Window

This commit is contained in:
Tim Taubert 2014-10-13 00:06:48 +02:00
parent 8825296869
commit da7590d108
9 changed files with 57 additions and 25 deletions

View file

@ -83,7 +83,7 @@ impl<'a> GlobalRef<'a> {
/// thread.
pub fn script_chan<'b>(&'b self) -> &'b ScriptChan {
match *self {
Window(ref window) => &window.script_chan,
Window(ref window) => window.script_chan(),
Worker(ref worker) => worker.script_chan(),
}
}

View file

@ -660,7 +660,7 @@ pub extern fn outerize_global(_cx: *mut JSContext, obj: JSHandleObject) -> *mut
IDLInterface::get_prototype_depth(None::<window::Window>))
.unwrap()
.root();
win.browser_context.borrow().as_ref().unwrap().window_proxy()
win.browser_context().as_ref().unwrap().window_proxy()
}
}