tor-browser

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

ancestor-chain-same-site-embed.html (634B)


      1 <!doctype html>
      2 <head>
      3 <meta charset="utf-8"/>
      4 <meta name="timeout" content="long">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/cookies/resources/testharness-helpers.js"></script>
      7 <title>Test partitioned cookies ancestor chain: same site embed</title>
      8 </head>
      9 <body>
     10 <script>
     11 
     12 test(() => {
     13  // The cookie set on the top-level site has no cross-site ancestor in and this embed has a
     14  // cross-site ancestor. So the partitioned cookie should not be accessible.
     15  assert_false(document.cookie.includes("ancestor=chain"));
     16 }, "Same-site embed with a cross-site parent partitioned cookie access");
     17 
     18 </script>
     19 </body>