diff options
Diffstat (limited to 'components/script/dom/url.rs')
-rw-r--r-- | components/script/dom/url.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs index 5fd4a9b005f..2d5968e9e07 100644 --- a/components/script/dom/url.rs +++ b/components/script/dom/url.rs @@ -285,7 +285,7 @@ impl URLMethods for URL { // https://url.spec.whatwg.org/#dom-url-searchparams fn SearchParams(&self) -> Root<URLSearchParams> { self.search_params.or_init(|| { - URLSearchParams::new(self.global().r().as_global_scope(), Some(self)) + URLSearchParams::new(&self.global_scope(), Some(self)) }) } |