From 084006abb627da8e1f0920887d68c3fba01adf72 Mon Sep 17 00:00:00 2001 From: webbeef Date: Fri, 21 Feb 2025 11:52:31 -0800 Subject: [PATCH] Add get_url() to GlobalScopeHelper (#35589) This is needed to build with the tracing feature Signed-off-by: webbeef --- components/script/dom/globalscope.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs index 4cc27bea3f0..f6fea97f208 100644 --- a/components/script/dom/globalscope.rs +++ b/components/script/dom/globalscope.rs @@ -3352,6 +3352,8 @@ pub(crate) trait GlobalScopeHelpers { fn incumbent() -> Option>; fn perform_a_microtask_checkpoint(&self, can_gc: CanGc); + + fn get_url(&self) -> ServoUrl; } #[allow(unsafe_code)] @@ -3387,4 +3389,8 @@ impl GlobalScopeHelpers for GlobalScope { fn perform_a_microtask_checkpoint(&self, can_gc: CanGc) { GlobalScope::perform_a_microtask_checkpoint(self, can_gc) } + + fn get_url(&self) -> ServoUrl { + self.get_url() + } }