mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
67751356ee
commit
7fae1904bf
@ -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() });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user