tor-browser

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

test_focus_shadow_dom.html (972B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1453693
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1453693</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 1453693 */
     14 
     15  SimpleTest.waitForExplicitFinish();
     16 
     17  async function runTests() {
     18    // Enable Full Keyboard Access emulation on Mac.
     19    if (navigator.platform.indexOf("Mac") === 0) {
     20      await SpecialPowers.pushPrefEnv({"set": [["accessibility.tabfocus", 7]]});
     21    }
     22    win = window.open("file_focus_shadow_dom.html", "", "width=300, height=300");
     23  }
     24 
     25  function didRunTests() {
     26    setTimeout(SimpleTest.finish);
     27  }
     28 
     29  ;
     30 
     31  </script>
     32 </head>
     33 <body onload="SimpleTest.waitForFocus(runTests);">
     34 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1453693">Mozilla Bug 1453693</a>
     35 </body>
     36 </html>