mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
469 B
JavaScript
20 lines
469 B
JavaScript
|
function test() {
|
||
|
waitForExplicitFinish();
|
||
|
|
||
|
var tab = gBrowser.addTab();
|
||
|
|
||
|
tab.addEventListener("TabClose", function () {
|
||
|
tab.removeEventListener("TabClose", arguments.callee, false);
|
||
|
|
||
|
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();
|
||
|
});
|
||
|
}, false);
|
||
|
|
||
|
gBrowser.removeTab(tab);
|
||
|
}
|