gecko-dev/browser/base/content/test/general/browser_bug664672.js
Victor Porof f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00

28 lines
507 B
JavaScript

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);
}