Bug 526326 - Fix random orange by ensuring tests wait for correct pageshow event before executing. r=gavin

This commit is contained in:
Graeme McCutcheon 2010-05-14 21:28:49 +01:00
Родитель 75c1c0e0da
Коммит 93bdf5acb4
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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