tor-browser

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

refresher_cached.html (937B)


      1 <!--
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <!DOCTYPE HTML>
      6 <html>
      7 <head>
      8  <title>Bug 982726 - test match_all not crashing</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     11 </head>
     12 <body>
     13 <p id="display"></p>
     14 <div id="content" style="display: none"></div>
     15 <pre id="test"></pre>
     16 <script class="testbody" type="text/javascript">
     17 
     18  if (!parent) {
     19    info("sw_clients/simple.html shouldn't be launched directly!");
     20  }
     21 
     22  window.addEventListener("message", function(event) {
     23    if (event.data === "REFRESH") {
     24      window.location.reload();
     25    } else if (event.data === "FORCE_REFRESH") {
     26      window.location.reload(true);
     27    }
     28  });
     29 
     30  navigator.serviceWorker.ready.then(function() {
     31    parent.postMessage("READY_CACHED", "*");
     32  });
     33 
     34 </script>
     35 </pre>
     36 </body>
     37 </html>