tor-browser

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

test_fetch.html (573B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test for cookies + fetch when the policy changes</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7  <script type="application/javascript" src="cookiesHelper.js"></script>
      8 </head>
      9 <body>
     10 <script type="application/javascript">
     11 
     12 runTests(async (w, state) => {
     13  w.document.cookie = "name=value";
     14  await w.fetch("cookie.sjs?fetch&" + Math.random()).then(r => r.text());
     15  await checkLastRequest("fetch", state);
     16 });
     17 
     18 </script>
     19 </body>
     20 </html>