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() + } }