tor-browser

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

ancestor-chain-same-site-to-cross-site-embed.html (648B)


      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: cross-site embed</title>
      8 </head>
      9 <body>
     10 <script>
     11 
     12 promise_test(async t => {
     13  await new Promise(resolve => window.onload = () => t.step_timeout(resolve, 0));
     14  const partitionedCookie = "ancestor=chain";
     15  assert_false(window.location.href.includes(partitionedCookie));
     16  assert_false(document.cookie.includes(partitionedCookie));
     17 }, "Cross-site embed partitioned cookie access");
     18 
     19 </script>
     20 </body>