blob: 32dd6c242ab0812991003c1b538c9449e89a54cc (
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);
}
|