mirror of
https://github.com/servo/servo.git
synced 2025-07-13 02:13:40 +01:00
23 lines
No EOL
500 B
HTML
23 lines
No EOL
500 B
HTML
<!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> |