blob: 4f9dbcea9fd20fb975c1ce616e136e7e8674bed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
function test() {
waitForExplicitFinish();
var tab = BrowserTestUtils.addTab(gBrowser);
tab.addEventListener(
"TabClose",
function () {
ok(
tab.linkedBrowser,
"linkedBrowser should still exist during the TabClose event"
);
executeSoon(function () {
ok(
!tab.linkedBrowser,
"linkedBrowser should be gone after the TabClose event"
);
finish();
});
},
{ once: true }
);
gBrowser.removeTab(tab);
}
|