Skip to content

Commit

Permalink
Reset searchParam in URL.href setter
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 22, 2016
1 parent 3c9e516 commit 3cd7a71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions components/script/dom/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 0 additions & 4 deletions tests/wpt/metadata/url/url-constructor.html.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3cd7a71

Please sign in to comment.