tor-browser

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

test-local-session-storage.html (785B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8" />
      5  <title>localStorage and sessionStorage Test</title>
      6 
      7  <script>
      8    "use strict";
      9 
     10    /* eslint-disable no-unused-vars */
     11 
     12    function init() {
     13      // We use the value key to ensure we cover an issue with iterating through
     14      // storage entries... please leave this key as "key"
     15      localStorage.setItem("key", "value1");
     16      localStorage.setItem("key2", "value2");
     17 
     18      // We use the value key to ensure we cover an issue with iterating through
     19      // storage entries... please leave this key as "key"
     20      sessionStorage.setItem("key", "value3");
     21      sessionStorage.setItem("key2", "value4");
     22    }
     23  </script>
     24 </head>
     25 <body onload="init()">
     26  <h1>localStorage and sessionStorage Test</h1>
     27 </body>
     28 </html>