https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5977168f5485cbb193415ffd1b893d824d097186 authored by Luke Bjerring on 23 May 2018, 13:38:10 UTC
Fix pointerlock with add_dependency_idls
Tip revision: 5977168
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