Files
firefox/testing/web-platform/tests/client-hints/accept-ch-malformed-header.https.html
Aaron Tagliaboschi d28ee1b25c Bug 1736376 [wpt PR 31298] - Clean up Client Hint WPT failures, a=testonly
Automatic update from web-platform-tests
Clean up Client Hint WPT failures

The wpt.fyi test runner does not restart the browser on a failure like
the trybot runners do, so any state left by the tests makes for
flakiness.

Also, accept-ch-change.https.html *actually* wasn't working properly, in
that nothing was running except the initial check

Leaving the cache-related failures for a separate patch

Bug: 1257191
Change-Id: I6a51ad020a6dde748afa9fa1efeeaf4c1ccf8b0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3213006
Reviewed-by: Mike Taylor <[email protected]>
Commit-Queue: Aaron Tagliaboschi <[email protected]>
Cr-Commit-Position: refs/heads/main@{#932969}

--

wpt-commits: 207e223d74fdc1f1103101d47105102fab667b4b
wpt-pr: 31298
2021-10-29 10:23:59 +00:00

25 lines
720 B
HTML

<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/open-and-add-load-event.js"></script>
<script>
promise_test(async t => {
t.add_cleanup(() => {
return open_and_add_load_event("resources/accept-ch-empty.html");
});
await open_and_add_load_event("resources/accept-ch-malformed.html");
// Verify that the browser does not include client hints in the headers
// since Accept-CH is malformed (includes whitespace between attributes
// instead of comma).
await open_and_expect_headers("resources/expect-no-client-hints-headers.html");
}, "Accept-CH malformed header test");
</script>
</body>
</html>