tor-browser

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

document-domain.html (508B)


      1 <!doctype html>
      2 <title>localStorage and document.domain</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 </head>
      6 <body>
      7 <div id="log"></div>
      8 <iframe></iframe>
      9 <script>
     10  async_test(function(t) {
     11    frames[0].addEventListener("storage", function(e) {
     12      t.step(function() {
     13        localStorage.clear()
     14        t.done()
     15      })
     16    })
     17    frames[0].document.domain = document.domain
     18    localStorage.setItem("test", "test")
     19  })
     20 </script>