mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Privatize Window
This commit is contained in:
parent
8825296869
commit
da7590d108
9 changed files with 57 additions and 25 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue