diff options
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 3c54259fc3e..84c9629ff86 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1594,7 +1594,8 @@ impl ScriptTask { let parent_page = self.root_page(); // TODO(gw): This find will fail when we are sharing script tasks // between cross origin iframes in the same TLD. - parent_page.find(parent).expect("received load for subpage with missing parent"); + let parent_page = parent_page.find(parent) + .expect("received load for subpage with missing parent"); parent_page.children.borrow_mut().push(page.clone()); } |