tor-browser

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

xrDevice_requestSession_immersive_no_gesture.https.html (605B)


      1 <!DOCTYPE html>
      2 <body>
      3  <script src=/resources/testharness.js></script>
      4  <script src=/resources/testharnessreport.js></script>
      5  <script src="resources/webxr_util.js"></script>
      6  <script src="resources/webxr_test_constants.js"></script>
      7  <script>
      8    xr_promise_test(
      9      "Requesting immersive session outside of a user gesture rejects",
     10      (t) => {
     11        return navigator.xr.test.simulateDeviceConnection(TRACKED_IMMERSIVE_DEVICE)
     12          .then( (controller) => promise_rejects_dom(
     13            t, 'SecurityError', navigator.xr.requestSession('immersive-vr')));
     14      });
     15  </script>
     16 </body>