aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/script_task.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index c8873387d5d..02c504804ce 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -1148,7 +1148,9 @@ impl ScriptTask {
.find(|node| node.subpage_id() == Some(subpage_id))
.map(Temporary::from_rooted)
}).root();
- iframe.r().unwrap().navigate_child_browsing_context(load_data.url);
+ if let Some(iframe) = iframe.r() {
+ iframe.navigate_child_browsing_context(load_data.url);
+ }
}
None => {
let ConstellationChan(ref const_chan) = self.constellation_chan;