tor-browser

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

storage-unsecured-iframe.html (691B)


      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 
     13 document.cookie = "uc1=foobar; domain=.example.org; path=/; secure=true";
     14 localStorage.setItem("iframe-u-ls1", "foobar");
     15 sessionStorage.setItem("iframe-u-ss1", "foobar1");
     16 sessionStorage.setItem("iframe-u-ss2", "foobar2");
     17 console.log("added cookies and stuff from unsecured iframe");
     18 
     19 window.clear = function () {
     20  document.cookie = "uc1=; expires=Thu, 01 Jan 1970 00:00:00 GMT";
     21  localStorage.clear();
     22  sessionStorage.clear();
     23  console.log("removed cookies and stuff from unsecured iframe");
     24 };
     25 
     26 </script>
     27 </body>
     28 </html>