tor-browser

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

default-enabled-features-attribution-disabled.https.html (1123B)


      1 <!DOCTYPE html>
      2 <title>Test where attribution-reporting is disabled in the top-level page</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="attribution-reporting *;");
     17 }, 'Same-origin fenced frame with allow attribute enabling required feature ' +
     18    'but page disabling feature.');
     19 
     20 promise_test(async(t) => {
     21  await runDefaultEnabledFeaturesTest(t, /*should_load=*/false,
     22      get_host_info().REMOTE_ORIGIN, generator_api="fledge",
     23      allow="attribution-reporting *;");
     24 }, 'Cross-origin fenced frame with allow attribute enabling required feature ' +
     25    'but page disabling feature.');
     26 </script>
     27 </body>
     28 </html>