blob: 0da7617e16d2913b08fdb989ec67ce392c4ed77b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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);
}
|