tor-browser

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

share-without-user-gesture.https.html (584B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>WebShare Test: Share without user gesture error</title>
      6    <script src="/resources/testharness.js"></script>
      7    <script src="/resources/testharnessreport.js"></script>
      8  </head>
      9  <body>
     10    <script>
     11        promise_test(t => {
     12          return promise_rejects_dom(
     13              t, 'NotAllowedError',
     14              navigator.share({title: 'the title', text: 'the message',
     15                               url: 'https://example.com'}));
     16        }, 'share without a user gesture');
     17    </script>
     18  </body>
     19 </html>