tor-browser

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

test_image.html (691B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test for cookies and image loading 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 
     15  let image = new w.Image();
     16  image.src = "cookie.sjs?image&" + Math.random();
     17  w.document.body.appendChild(image);
     18  await new w.Promise(resolve => { image.onload = resolve; });
     19  await checkLastRequest("image", state);
     20 });
     21 
     22 </script>
     23 </body>
     24 </html>