tor-browser

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

file_notification_openWindow.html (641B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Bug 1578070</title>
      5 </head>
      6 <body>
      7 <p id="display"></p>
      8 <div id="content" style="display: none"></div>
      9 <pre id="test"></pre>
     10 <script class="testbody" type="text/javascript">
     11 window.onload = () => {
     12  navigator.serviceWorker.ready.then(() => {
     13    // Open and close a new window.
     14    window.open("https://example.org/").close();
     15 
     16    // If we make it here, then we didn't crash. Tell the worker we're done.
     17    navigator.serviceWorker.controller.postMessage({
     18      type: "DONE",
     19      referrer: document.referrer
     20    });
     21 
     22    // We're done!
     23    window.close();
     24  });
     25 }
     26 </script>
     27 </pre>
     28 </body>
     29 </html>