tor-browser

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

file_bug1379762-1.html (1098B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3  <head>
      4    <meta charset="utf-8">
      5    <title>Bug 1379762</title>
      6  </head>
      7  <img srcset> <!-- This tries to add load blockers during bfcache restoration -->
      8  <script>
      9    onunload = null; // enable bfcache
     10    var bc = new BroadcastChannel('bug1379762');
     11    bc.postMessage("init"); 
     12    onpageshow = function() {
     13      bc.onmessage = (messageEvent) => {
     14        let message = messageEvent.data;
     15        if (message == "forward_back") {
     16          // Navigate forward and then back.
     17          // eslint-disable-next-line no-global-assign
     18          setTimeout(function() { location = "goback.html"; }, 0);
     19        } else if (message == "finish_test") {
     20          // Do this async so our load event gets a chance to fire if it plans to
     21          // do it.
     22          setTimeout(function() {
     23            bc.postMessage("finished");
     24            bc.close();
     25            window.close();
     26          });
     27        }
     28      }
     29      bc.postMessage("increment_testCount");
     30    };
     31    onload = function() {
     32      bc.postMessage("increment_loadCount");
     33    };
     34  </script>
     35 </html>