mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
Reset searchParam in URL.href setter
https://github.com/whatwg/url/issues/117
This commit is contained in:
parent
85de5ec743
commit
eee317352c
2 changed files with 1 additions and 4 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue