tor-browser

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

default-enabled-features-attribute-disallow.https.html (1386B)


      1 <!DOCTYPE html>
      2 <title>Test default permission policy features with allow="" attribute</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/common/utils.js"></script>
      6 <script src="/common/dispatcher/dispatcher.js"></script>
      7 <script src="resources/utils.js"></script>
      8 <script src="/common/get-host-info.sub.js"></script>
      9 <script src="resources/default-enabled-features-helper.js"></script>
     10 
     11 <body>
     12 <script>
     13 promise_test(async(t) => {
     14  await runDefaultEnabledFeaturesTest(t, /*should_load=*/false,
     15      get_host_info().ORIGIN, generator_api="fledge",
     16      allow="private-aggregation 'none'");
     17  await runDefaultEnabledFeaturesTest(t, /*should_load=*/false,
     18      get_host_info().ORIGIN, generator_api="sharedstorage",
     19      allow="shared-storage 'none'");
     20 }, 'Same-origin fenced frame with allow attribute disabling required feature');
     21 
     22 promise_test(async(t) => {
     23  await runDefaultEnabledFeaturesTest(t, /*should_load=*/false,
     24      get_host_info().REMOTE_ORIGIN, generator_api="fledge",
     25      allow="private-aggregation 'none'");
     26  await runDefaultEnabledFeaturesTest(t, /*should_load=*/false,
     27      get_host_info().REMOTE_ORIGIN, generator_api="sharedstorage",
     28      allow="shared-storage 'none'");
     29 }, 'Cross-origin fenced frame with allow attribute disabling required feature');
     30 
     31 </script>
     32 </body>
     33 </html>