aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/windowproxy.rs2
-rw-r--r--components/script/script_thread.rs2
2 files changed, 2 insertions, 2 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,
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 0d216212257..0ed9e80910e 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -2530,7 +2530,7 @@ impl ScriptThread {
// FIXME: synchronously talks to constellation.
// send the required info as part of postmessage instead.
let source = match self.remote_window_proxy(
- &window.global(),
+ window.upcast::<GlobalScope>(),
source_browsing_context,
source_pipeline_id,
None,