Ensure that grandchild same-origin iframes are added to the children of the child iframe of the root. Resolves #8973.

This commit is contained in:
Josh Matthews 2015-12-14 18:59:03 -05:00
parent d11f96e270
commit 397d748f9d
5 changed files with 28 additions and 1 deletions

View file

@ -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());
}