Replace some uses of window.global() with upcast.

Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
This commit is contained in:
aniebietafia 2025-03-27 13:58:19 +01:00
parent 0051234e2c
commit 58f1a6e721
2 changed files with 2 additions and 2 deletions

View file

@ -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,