blob: 1cf01a7f53222bd81aab0c7314f7aa8ae439989b [file] [log] [blame]
<!DOCTYPE html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<a name="anchor"></a>
<script>
var t = async_test("Test that anchor navigation is allowed regardless of the `navigate-to` directive");
window.addEventListener('securitypolicyviolation', t.unreached_func("Should not have triggered any violation"));
try {
window.location.hash = "anchor";
t.done();
} catch(ex) {}
</script>
</body>