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.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 0b4f0001292..d6c7687832f 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -2257,10 +2257,8 @@ impl Window {
// Step 4 and 5
let window_proxy = self.window_proxy();
if let Some(active) = window_proxy.currently_active() {
- if pipeline_id == active {
- if doc.is_prompting_or_unloading() {
- return;
- }
+ if pipeline_id == active && doc.is_prompting_or_unloading() {
+ return;
}
}