diff options
Diffstat (limited to 'components/script/dom/location.rs')
-rw-r--r-- | components/script/dom/location.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/location.rs b/components/script/dom/location.rs index c992486b8d1..576a1d1b005 100644 --- a/components/script/dom/location.rs +++ b/components/script/dom/location.rs @@ -40,7 +40,7 @@ impl Location { setter: fn(&mut ServoUrl, USVString)) { let mut url = self.window.get_url(); setter(&mut url, value); - self.window.load_url(url, false, None); + self.window.load_url(url, false, false, None); } } @@ -51,7 +51,7 @@ impl LocationMethods for Location { // _entry settings object_. let base_url = self.window.get_url(); if let Ok(url) = base_url.join(&url.0) { - self.window.load_url(url, false, None); + self.window.load_url(url, false, false, None); Ok(()) } else { Err(Error::Syntax) @@ -60,7 +60,8 @@ impl LocationMethods for Location { // https://html.spec.whatwg.org/multipage/#dom-location-reload fn Reload(&self) { - self.window.load_url(self.get_url(), true, None); + self.window.load_url(self.get_url(), true, true, None); + } } // https://html.spec.whatwg.org/multipage/#dom-location-hash @@ -109,7 +110,7 @@ impl LocationMethods for Location { // https://html.spec.whatwg.org/multipage/#dom-location-href fn SetHref(&self, value: USVString) { if let Ok(url) = self.window.get_url().join(&value.0) { - self.window.load_url(url, false, None); + self.window.load_url(url, false, false, None); } } |