зеркало из https://github.com/mozilla/gecko-dev.git
Bug 526326 - Fix random orange by ensuring tests wait for correct pageshow event before executing. r=gavin
This commit is contained in:
Родитель
75c1c0e0da
Коммит
93bdf5acb4
|
@ -90,7 +90,11 @@
|
|||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
}
|
||||
|
||||
function onPageShow() {
|
||||
function onPageShow(aEvent) {
|
||||
// Don't respond to pageshow events coming from the <iframes>
|
||||
if (aEvent.target != gBrowser.contentDocument)
|
||||
return;
|
||||
|
||||
gBrowser.removeEventListener("pageshow", onPageShow, false);
|
||||
|
||||
// First, take a snapshot of the window without highlighting
|
||||
|
|
Загрузка…
Ссылка в новой задаче