tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

browser_bug664672.js (509B)


      1 function test() {
      2  waitForExplicitFinish();
      3 
      4  var tab = BrowserTestUtils.addTab(gBrowser);
      5 
      6  tab.addEventListener(
      7    "TabClose",
      8    function () {
      9      ok(
     10        tab.linkedBrowser,
     11        "linkedBrowser should still exist during the TabClose event"
     12      );
     13 
     14      executeSoon(function () {
     15        ok(
     16          !tab.linkedBrowser,
     17          "linkedBrowser should be gone after the TabClose event"
     18        );
     19 
     20        finish();
     21      });
     22    },
     23    { once: true }
     24  );
     25 
     26  gBrowser.removeTab(tab);
     27 }