blob: 07e194ca4192cc7fbd95b2aa88fd4604cbf77d8f (
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 = t.unreached_func("onnavigate");
await assertBothRejectDOM(t, navigation.navigate("https://example.com\u0000mozilla.org", { state: document.body }), "SyntaxError");
}, `navigate() with an invalid URL and unserializable state throws "SyntaxError", not "DataCloneError"`);
</script>
|