aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/htmliframeelement.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index df94aeb361c..b70663a6949 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -130,10 +130,12 @@ impl HTMLIFrameElement {
let document = document_from_node(self);
- let mut load_blocker = self.load_blocker.borrow_mut();
- // Any oustanding load is finished from the point of view of the blocked
- // document; the new navigation will continue blocking it.
- LoadBlocker::terminate(&mut load_blocker);
+ {
+ let mut load_blocker = self.load_blocker.borrow_mut();
+ // Any oustanding load is finished from the point of view of the blocked
+ // document; the new navigation will continue blocking it.
+ LoadBlocker::terminate(&mut load_blocker);
+ }
if load_data.url.scheme() == "javascript" {
let window_proxy = self.GetContentWindow();
@@ -150,6 +152,7 @@ impl HTMLIFrameElement {
match load_data.js_eval_result {
Some(JsEvalResult::NoContent) => (),
_ => {
+ let mut load_blocker = self.load_blocker.borrow_mut();
*load_blocker = Some(LoadBlocker::new(
&*document,
LoadType::Subframe(load_data.url.clone()),