tor-browser

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

browser_bug609700.js (549B)


      1 function test() {
      2  waitForExplicitFinish();
      3 
      4  Services.ww.registerNotification(function notification(aSubject, aTopic) {
      5    if (aTopic == "domwindowopened") {
      6      Services.ww.unregisterNotification(notification);
      7 
      8      ok(true, "duplicateTabIn opened a new window");
      9 
     10      whenDelayedStartupFinished(
     11        aSubject,
     12        function () {
     13          executeSoon(function () {
     14            aSubject.close();
     15            finish();
     16          });
     17        },
     18        false
     19      );
     20    }
     21  });
     22 
     23  duplicateTabIn(gBrowser.selectedTab, "window");
     24 }