mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
80cb6231b8
commit
d5e11c4b5c
@ -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>");
|
||||
|
Loading…
Reference in New Issue
Block a user