tor-browser

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

clipboard-read-enabled-by-feature-policy-attribute-tentative.https.sub.html (860B)


      1 <!doctype html>
      2 <body>Body needed for test_driver.click()</body>
      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="/feature-policy/resources/featurepolicy.js"></script>
      8 <script src="../../resources/user-activation.js"></script>
      9 <script>
     10 'use strict';
     11 
     12 const same_origin_src =
     13  '/feature-policy/resources/feature-policy-clipboard-read.html';
     14 
     15 promise_test(async t => {
     16  await waitForUserActivation();
     17  test_feature_availability(
     18    'navigator.clipboard.readText()',
     19    t,
     20    same_origin_src,
     21    expect_feature_available_default,
     22    'clipboard-read'
     23  );
     24 }, 'Feature policy "clipboard-read" can be enabled in same-origin iframe using allow="clipboard-read" attribute');
     25 </script>