Add get_url() to GlobalScopeHelper (#35589)

This is needed to build with the tracing feature

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-02-21 11:52:31 -08:00 committed by GitHub
parent e883eaa322
commit 084006abb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3352,6 +3352,8 @@ pub(crate) trait GlobalScopeHelpers<D: crate::DomTypes> {
fn incumbent() -> Option<DomRoot<D::GlobalScope>>;
fn perform_a_microtask_checkpoint(&self, can_gc: CanGc);
fn get_url(&self) -> ServoUrl;
}
#[allow(unsafe_code)]
@ -3387,4 +3389,8 @@ impl GlobalScopeHelpers<crate::DomTypeHolder> 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()
}
}