tor-browser

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

requires-user-gesture.https.html (431B)


      1 <!DOCTYPE html>
      2 <title>Test that documentPictureInPicture.requestWindow()
      3  fails without a user gesture</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <body>
      7 <script>
      8 promise_test(t => {
      9  return promise_rejects_dom(t, 'NotAllowedError',
     10    documentPictureInPicture.requestWindow());
     11 },
     12    "requestWindow should fail without a user gesture");
     13 </script>
     14 </body>