mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
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:
parent
d11f96e270
commit
397d748f9d
5 changed files with 28 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue