mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
f9f5914039
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D36041 --HG-- extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
28 lines
507 B
JavaScript
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);
|
|
}
|