Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 function test() {
2 waitForExplicitFinish();
4 var tab = gBrowser.addTab();
6 tab.addEventListener("TabClose", function () {
7 tab.removeEventListener("TabClose", arguments.callee, false);
9 ok(tab.linkedBrowser, "linkedBrowser should still exist during the TabClose event");
11 executeSoon(function () {
12 ok(!tab.linkedBrowser, "linkedBrowser should be gone after the TabClose event");
14 finish();
15 });
16 }, false);
18 gBrowser.removeTab(tab);
19 }