tor-browser

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

test_bug558663.html (1285B)


      1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      2   - License, v. 2.0. If a copy of the MPL was not distributed with this
      3   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      4 
      5 <!DOCTYPE html>
      6 <html>
      7  <head>
      8    <title>Bug 558663 test</title>
      9    <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10    <script src="/tests/SimpleTest/EventUtils.js"></script>
     11    <script src="/tests/SimpleTest/WindowSnapshot.js"></script>
     12    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     13    <style>
     14      iframe {
     15        width: 600px;
     16        height: 400px;
     17      }
     18    </style>
     19  </head>
     20  <body>
     21    <div id="container"></div>
     22  </body>
     23  <script>
     24  if (navigator.platform.startsWith("Linux")) {
     25    // For e10s issue of bug 966157
     26    SimpleTest.expectAssertions(0, 2);
     27  }
     28  SimpleTest.waitForExplicitFinish();
     29  // AccessibleCaret's pref is checked only when PresShell is initialized. To turn
     30  // off the pref, we test bug 558663 in an iframe.
     31  SpecialPowers.pushPrefEnv({"set": [['layout.accessiblecaret.enabled_on_touch', false]]}, function() {
     32    var iframe = document.createElement("iframe");
     33    iframe.src = "bug558663.html";
     34    document.getElementById('container').appendChild(iframe);
     35  });
     36  </script>
     37 </html>