tor-browser

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

presentation-receiver.https.html (832B)


      1 <!DOCTYPE html>
      2 <title>Test permission of notification</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/resources/testdriver.js"></script>
      6 <script src="/resources/testdriver-vendor.js"></script>
      7 <script src="resources/utils.js"></script>
      8 <script src="/common/utils.js"></script>
      9 
     10 <body>
     11 
     12 <script>
     13 promise_test(async t => {
     14  const presentation_receiver_key = token();
     15 
     16  attachFencedFrame(generateURL('resources/presentation-receiver-inner.html',
     17      [presentation_receiver_key]));
     18  const actual_result = await nextValueFromServer(presentation_receiver_key);
     19 
     20  assert_equals(
     21      actual_result, 'denied',
     22      'presentation receiver should not be allowed on fenced-frames.');
     23 }, 'presentation receiver should not be allowed');
     24 </script>
     25 
     26 </body>