tor-browser

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

coep-with-same-origin.https.html (1241B)


      1 <!doctype html>
      2 <title>Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy</title>
      3 <meta name=timeout content=long>
      4 <script src=/resources/testharness.js></script>
      5 <script src=/resources/testharnessreport.js></script>
      6 <script src="/common/get-host-info.sub.js"></script>
      7 <script src="/common/dispatcher/dispatcher.js"></script>
      8 <script src="/common/utils.js"></script>
      9 <script src="resources/common.js"></script>
     10 <script src="resources/popup-test.js"></script>
     11 <script>
     12 [
     13  {
     14    "title": "popup with coop/coep",
     15    "coop": "same-origin",
     16    "coep": "require-corp",
     17    "opener": "preserved"
     18  },
     19  {
     20    "title": "popup with coop unsafe-none/coep",
     21    "coop": "unsafe-none",
     22    "coep": "require-corp",
     23    "opener": "severed"
     24  },
     25  {
     26    "title": "popup with coop unsafe-none without coep",
     27    "coop": "unsafe-none",
     28    "coep": "",
     29    "opener": "severed"
     30  },
     31  {
     32    "title": "popup without coep",
     33    "coop": "same-origin",
     34    "coep": "",
     35    "opener": "severed"
     36  }
     37 ].forEach(variant => {
     38  popup_test(`Same-origin ${variant.title}`, SAME_ORIGIN, { coop: variant.coop, coep: variant.coep }, variant.opener);
     39 });
     40 
     41 test(() => {
     42  assert_true(window.crossOriginIsolated);
     43 }, "Bonus: window.crossOriginIsolated");
     44 </script>