tor-browser

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

test_bfcache.html (1129B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1230533
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1230533: Test speech is stopped from a window when unloaded</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <script type="application/javascript" src="common.js"></script>
     11  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     12 </head>
     13 <body>
     14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1230533">Mozilla Bug 1230533</a>
     15 <p id="display"></p>
     16 <div id="content" style="display: none">
     17 
     18 </div>
     19 <pre id="test">
     20 <script type="application/javascript">
     21 
     22 /** Test for Bug 525444 */
     23 
     24 SimpleTest.waitForExplicitFinish();
     25 let testWin;
     26 
     27 function onDone() {
     28  testWin.close();
     29  SimpleTest.finish();
     30 }
     31 
     32 SpecialPowers.pushPrefEnv({ set: [
     33  ['media.webspeech.synth.enabled', true],
     34  ['media.webspeech.synth.force_global_queue', true]] },
     35  function() {
     36    testWin = window.open("about:blank", "testWin");
     37    waitForVoices(testWin)
     38      .then(() => testWin.location = "file_bfcache_page1.html")
     39  });
     40 
     41 </script>
     42 </pre>
     43 </body>
     44 </html>