tor-browser

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

test_bug912322.html (1109B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=912322
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 912322</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  var { AppConstants } = SpecialPowers.ChromeUtils.importESModule(
     14    "resource://gre/modules/AppConstants.sys.mjs"
     15  );
     16  // Test window.controllers.
     17  if (AppConstants.RELEASE_OR_BETA) {
     18    is(typeof window.controllers, 'object', "shimmed controllers should be available to content in beta and release");
     19  } else {
     20    is(typeof window.controllers, 'undefined', "controllers should not be available to content in Nightly");
     21  }
     22  is(typeof SpecialPowers.wrap(window).controllers, 'object', "controllers should be available over Xray");
     23 
     24  </script>
     25 </head>
     26 <body>
     27 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=912322">Mozilla Bug 912322</a>
     28 <p id="display"></p>
     29 <div id="content" style="display: none">
     30 
     31 </div>
     32 <pre id="test">
     33 </pre>
     34 </body>
     35 </html>