Bug 885965 - Change browser_typeAheadFind.js to use load event instead of pageshow event. r=ttaubert

--HG--
extra : rebase_source : 4a5debbc10c50f41c7bbd5c45191daa152189997
This commit is contained in:
Jared Wein 2013-07-10 14:38:04 -04:00
parent 80cb6231b8
commit d5e11c4b5c

View File

@ -10,9 +10,9 @@ function test() {
testWindow = OpenBrowserWindow();
whenDelayedStartupFinished(testWindow, function () {
let selectedBrowser = testWindow.gBrowser.selectedBrowser;
selectedBrowser.addEventListener("pageshow", function() {
selectedBrowser.removeEventListener("pageshow", arguments.callee, true);
ok(true, "pageshow listener called");
selectedBrowser.addEventListener("load", function onLoad() {
selectedBrowser.removeEventListener("load", onLoad, true);
ok(true, "load listener called");
waitForFocus(onFocus, testWindow.content);
}, true);
testWindow.gBrowser.loadURI("data:text/html,<h1>A Page</h1>");