mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
18 lines
428 B
JavaScript
18 lines
428 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
var tab = gBrowser.addTab();
|
|
gBrowser.selectedTab = tab;
|
|
|
|
tab.linkedBrowser.addEventListener("load", function onload() {
|
|
tab.linkedBrowser.removeEventListener("load", onload);
|
|
|
|
tab.linkedBrowser.addEventListener("pagehide", function() {
|
|
ok(true, "got page hide event");
|
|
finish();
|
|
});
|
|
|
|
executeSoon(() => { gBrowser.removeTab(tab); });
|
|
}, true);
|
|
}
|