Bug 1131576 - Spin the event loop between calls to showPopup in test_windowminmaxsize.xul. r=enn

MozReview-Commit-ID: CoZBzJQRHGx
This commit is contained in:
Andrew Comminos 2016-07-27 14:18:47 -04:00
parent 67751356ee
commit 7fae1904bf

View File

@ -199,7 +199,12 @@ function nextPopupTest(panel)
if ("last" in popupTests[gTestId])
document.getElementById("popupresizer").removeAttribute("flex");
panel.openPopup();
// Prevent event loop starvation as a result of popup events being
// synchronous. See bug 1131576.
SimpleTest.executeSoon(() => {
// Non-chrome shells require focus to open a popup.
SimpleTest.waitForFocus(() => { panel.openPopup() });
});
}
}