зеркало из https://github.com/mozilla/gecko-dev.git
16 строки
400 B
JavaScript
16 строки
400 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
var tab = BrowserTestUtils.addTab(gBrowser);
|
|
gBrowser.selectedTab = tab;
|
|
|
|
tab.linkedBrowser.addEventListener("load", function() {
|
|
tab.linkedBrowser.addEventListener("pagehide", function() {
|
|
ok(true, "got page hide event");
|
|
finish();
|
|
});
|
|
|
|
executeSoon(() => { gBrowser.removeTab(tab); });
|
|
}, {capture: true, once: true});
|
|
}
|