mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 22:28:59 +02:00
19 lines
453 B
JavaScript
19 lines
453 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
var tab = gBrowser.addTab();
|
|
|
|
tab.addEventListener("TabClose", function() {
|
|
tab.removeEventListener("TabClose", arguments.callee);
|
|
|
|
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();
|
|
});
|
|
});
|
|
|
|
gBrowser.removeTab(tab);
|
|
}
|