diff options
-rw-r--r-- | components/script/dom/url.rs | 1 | ||||
-rw-r--r-- | tests/wpt/metadata/url/url-constructor.html.ini | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs index 664221c4bb8..f2ba7082e0f 100644 --- a/components/script/dom/url.rs +++ b/components/script/dom/url.rs @@ -144,6 +144,7 @@ impl URLMethods for URL { match Url::parse(&value.0) { Ok(url) => { *self.url.borrow_mut() = url; + self.search_params.set(None); // To be re-initialized in the SearchParams getter. Ok(()) }, Err(error) => { diff --git a/tests/wpt/metadata/url/url-constructor.html.ini b/tests/wpt/metadata/url/url-constructor.html.ini index fbbdefe9627..f70364a8d03 100644 --- a/tests/wpt/metadata/url/url-constructor.html.ini +++ b/tests/wpt/metadata/url/url-constructor.html.ini @@ -74,7 +74,3 @@ [Parsing: <h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg> against <about:blank>] expected: FAIL - - [URL.searchParams and URL.search setters, update propagation] - expected: FAIL - |