aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index f4efcd8dd76..069dd3fc2d6 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1410,11 +1410,12 @@ impl Window {
}
/// Commence a new URL load which will either replace this window or scroll to a fragment.
- pub fn load_url(&self, url: Url) {
+ pub fn load_url(&self, url: Url, replace: bool) {
let doc = self.Document();
self.main_thread_script_chan().send(
MainThreadScriptMsg::Navigate(self.id,
- LoadData::new(url, doc.get_referrer_policy(), Some(doc.url().clone())))).unwrap();
+ LoadData::new(url, doc.get_referrer_policy(), Some(doc.url().clone())),
+ replace)).unwrap();
}
pub fn handle_fire_timer(&self, timer_id: TimerEventId) {