tor-browser

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

file_current_inner_window.html (629B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4  <meta charset="UTF-8">
      5  <title></title>
      6  <script>
      7    function isCurrentWinnerWindow() {
      8      // If we are the current inner window for our BrowsingContext, bare word
      9      // access to `name` will return "". If we are not, it will throw.
     10      // Note that this is *not* the same as accessing `window.name`, which
     11      // will go through our WindowProxy, which will always forward it to the
     12      // currently-active inner window.
     13      try {
     14        void name;
     15        return true;
     16      } catch (e) {
     17        return false;
     18      }
     19    }
     20  </script>
     21 </head>
     22 <body>
     23 </body>
     24 </html>