aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index 94a8e134abd..92f82c75fed 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -920,7 +920,8 @@ impl ScriptTask {
is a bug.");
let page = page_tree.page();
- match replace(&mut *page.mut_url(), None) {
+ let last_loaded_url = replace(&mut *page.mut_url(), None);
+ match last_loaded_url {
Some((ref loaded, needs_reflow)) if *loaded == url => {
*page.mut_url() = Some((loaded.clone(), false));
if needs_reflow {