aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAniebiet Afia <54312052+aniebietafia@users.noreply.github.com>2025-03-27 18:28:45 +0100
committerGitHub <noreply@github.com>2025-03-27 17:28:45 +0000
commit3f5220b42156268d08a6e87f78ded468058c98d4 (patch)
tree11d5bf3e01e94bf20668f319fa9717b38df71241 /components/script/script_thread.rs
parenta8063b8b4b692a741f57fa69c58b4daa2f7d19f6 (diff)
downloadservo-3f5220b42156268d08a6e87f78ded468058c98d4.tar.gz
servo-3f5220b42156268d08a6e87f78ded468058c98d4.zip
Replace some uses of window.global() with upcast. (#36179)
Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
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,