tor-browser

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

storage-unsecured-iframe.html (622B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 Iframe for testing multiple host detetion in storage actor
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8 </head>
      9 <body>
     10 <script>
     11 "use strict";
     12 const cookieExpiresTime = 2000000000000;
     13 document.cookie = "uc1=foobar; domain=.example.org; path=/";
     14 document.cookie = "uc2=foobar-2; expires=" +
     15  new Date(cookieExpiresTime).toGMTString() + "; path=/; domain=.example.org";
     16 localStorage.setItem("iframe-u-ls1", "foobar");
     17 sessionStorage.setItem("iframe-u-ss1", "foobar1");
     18 sessionStorage.setItem("iframe-u-ss2", "foobar2");
     19 dump("added cookies and storage from unsecured iframe\n");
     20 </script>
     21 </body>
     22 </html>