Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/metadata/navigation.https.sub.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/fetch/metadata/resources/helper.js></script>
<script>
test(t => {
let expected = {
"mode": "navigate",
"site": "none",
"dest": "document"
};
let actual = {
"mode": "{{headers[sec-fetch-mode]}}",
"site": "{{headers[sec-fetch-site]}}",
// Skipping `Sec-Fetch-User`, as the test harness isn't consistent here.
"dest": "{{headers[sec-fetch-dest]}}"
};
assert_header_equals(actual, expected);
}, "This page's top-level navigation.");
</script>