tor-browser

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

test_bug1326251.html (1369B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=
      5 -->
      6 <head>
      7  <title>Test for Bug 1326251</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10 </head>
     11 <body onload="runTest()">
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1326251">Mozilla Bug 1326251</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15 
     16 </div>
     17 <pre id="test">
     18  <script type="application/javascript">
     19 
     20    var testCount = 0;
     21 
     22    var bc = new BroadcastChannel("file_bug1326251");
     23    bc.onmessage = function(event) {
     24      if (event.data == "requestNextTest") {
     25        bc.postMessage({ nextTest: testCount++ });
     26      } else if (event.data.type == "is") {
     27        is(event.data.value1, event.data.value2, event.data.message);
     28      } else if (event.data.type == "ok") {
     29        ok(event.data.value, event.data.message);
     30      } else if (event.data == "finishTest") {
     31        SimpleTest.finish();
     32      }
     33    }
     34 
     35    SimpleTest.waitForExplicitFinish();
     36 
     37    function runTest() {
     38      // If Fission is disabled, the pref is no-op.
     39      SpecialPowers.pushPrefEnv({set: [["fission.bfcacheInParent", true]]}, () => {
     40        window.open("file_bug1326251.html", "", "width=360,height=480,noopener");
     41      });
     42    }
     43 
     44  </script>
     45 </pre>
     46 </body>
     47 </html>