Revision df2e8038d83a8573de683c38fde2211bcc3057a2 authored by Luke Bjerring on 22 March 2018, 19:15:29 UTC, committed by GitHub on 22 March 2018, 19:15:29 UTC
1 parent e48a42f
Raw File
document-domain.html
<!doctype html>
<title>localStorage and document.domain</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<iframe></iframe>
<script>
  async_test(function(t) {
    frames[0].addEventListener("storage", function(e) {
      t.step(function() {
        localStorage.clear()
        t.done()
      })
    })
    frames[0].document.domain = document.domain
    localStorage.setItem("test", "test")
  })
</script>
back to top