tor-browser

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

embedder-no-coep.https.html (930B)


      1 <!DOCTYPE html>
      2 <title>Test COEP properties set for a Fenced Frame Tree</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="resources/utils.js"></script>
      7 <script src="resources/embedder-policy.js"></script>
      8 
      9 <body>
     10 <script>
     11 promise_test(async () => {
     12  const uuid = token();
     13  const frame = setupTest("coep:require-corp", uuid);
     14  const result = await nextValueFromServer(uuid);
     15  assert_equals(result, "PASS", "embedded page has been loaded.");
     16 }, "Create fencedframe with COEP:require-corp");
     17 
     18 promise_test(async () => {
     19  const uuid = token();
     20  const frame = setupTest("no coep", uuid);
     21  const result = await nextValueFromServer(uuid);
     22  assert_equals(result, "PASS",
     23                "page without COEP should be able to load page with COEP");
     24 }, "Create fencedframe without COEP header");
     25 
     26 </script>
     27 </body>