summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/windows/auxiliary-browsing-contexts/resources/no-opener.html
blob: afd72f948d9128fdf2b3884570e36ed7a8ea36e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<meta charset="utf-8">
<html>
<p>This window should have no opener.</p>
<script src="/common/PrefixedLocalStorage.js"></script>
<script>
var prefixedLocalStorage = new PrefixedLocalStorageResource({
  close_on_cleanup: true
});
function checkOpener () {
  return prefixedLocalStorage.setItem('openerIsNull', window.opener === null);
}
</script>
<body onload="checkOpener()">
</body>
</html>