mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 783589 - Fix for intermittent test_popup-navigates-children.html, test_sibling-matching-parent.html failure, r=justin.lebar
This commit is contained in:
parent
c3e6d00ad8
commit
b92a44eb9e
@ -184,8 +184,12 @@ function xpcWaitForFinishedFrames(callback, numFrames) {
|
||||
(win.document.body.textContent == body ||
|
||||
win.document.body.textContent == popup_body) &&
|
||||
win.document.readyState == "complete") {
|
||||
if (!contains(win, finishedWindows)) {
|
||||
finishedWindows.push(win);
|
||||
|
||||
var util = win.QueryInterface(SpecialPowers.Ci.nsIInterfaceRequestor)
|
||||
.getInterface(SpecialPowers.Ci.nsIDOMWindowUtils);
|
||||
var windowId = util.outerWindowID;
|
||||
if (!contains(windowId, finishedWindows)) {
|
||||
finishedWindows.push(windowId);
|
||||
frameFinished();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user