blob: 6257c5a03d6757345d1a29bd4e9115d14f6b847e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/helpers.js"></script>
<script>
promise_test(async t => {
navigation.onnavigate = e => e.preventDefault();
await assertBothRejectDOM(t, navigation.navigate("#"), "AbortError");
}, "navigate() when the onnavigate handler calls preventDefault()");
</script>
|