tor-browser

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

test_hide_gamepad_info.html (720B)


      1 <!DOCTYPE html>
      2 <meta charset="utf8">
      3 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      4 <script>
      5 /* global SimpleTest SpecialPowers */
      6 
      7 SimpleTest.waitForExplicitFinish();
      8 document.addEventListener("DOMContentLoaded", function() {
      9  SpecialPowers.pushPrefEnv({
     10    set: [
     11      ["dom.gamepad.test.enabled", true],
     12      ["privacy.resistFingerprinting", true],
     13    ],
     14  }, function() {
     15    // This test loads in an iframe, to ensure that the navigator instance is
     16    // loaded with the correct value of the preference.
     17    var iframe = document.createElement("iframe");
     18    iframe.allow = "gamepad";
     19    iframe.src = "test_hide_gamepad_info_iframe.html";
     20    document.body.appendChild(iframe);
     21  });
     22 });
     23 </script>