summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/client-hints/accept-ch-stickiness/same-origin-navigation-empty-accept-ch.https.html
blob: e57f1c3dc6f707d2b531702d076852ef12c7f999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<meta name="timeout" content="long">
<title>Accept-CH Persistence test</title>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="resources/accept-ch-test.js"></script>

<script>
// Tests that an empty accept-ch header disables client hints.
const test_name = "empty-ch on navigation";
verify_initial_state(echo, test_name);
attempt_set("navigation", accept, test_name, " to non-empty first");
attempt_set("navigation", accept_blank, test_name, " to empty second");
verify_navigation_state(do_not_expect, test_name);
</script>
</body>
</html>