diff options
Diffstat (limited to 'components/script/dom/windowproxy.rs')
-rw-r--r-- | components/script/dom/windowproxy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/windowproxy.rs b/components/script/dom/windowproxy.rs index acd96b4e55a..d008c76f905 100644 --- a/components/script/dom/windowproxy.rs +++ b/components/script/dom/windowproxy.rs @@ -184,7 +184,7 @@ impl WindowProxy { assert!(!js_proxy.is_null()); // Create a new browsing context. - let current = Some(window.global().pipeline_id()); + let current = Some(window.upcast::<GlobalScope>().pipeline_id()); let window_proxy = Box::new(WindowProxy::new_inherited( browsing_context_id, webview_id, |