Files
firefox/testing/web-platform/tests/client-hints/sec-ch-quotes.https.html
T
Aaron Tagliaboschi d3fe0dd61d Bug 1578813 [wpt PR 18841] - Make Sec-CH-UA-* headers camel case and quotes, a=testonly
Automatic update from web-platform-tests
Make Sec-CH-UA-* headers camel case and quotes

Pretty simple aesthetic changes, but bringing in closer to spec (and
fixing tests to match"

Bug: 959613, 971342
Change-Id: I3a1409a73852a5e767380dbc60d0019847e3fffb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1647436
Commit-Queue: Aaron Tagliaboschi <[email protected]>
Reviewed-by: Robert Ma <[email protected]>
Reviewed-by: Yoav Weiss <[email protected]>
Cr-Commit-Position: refs/heads/master@{#700256}

--

wpt-commits: baf80a2905606c87b702ad1891af77057f171a0a
wpt-pr: 18841
2019-09-30 14:02:07 +00:00

25 lines
865 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Tests Stale While Revalidate is not executed for fetch API</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script>
promise_test(async (test) => {
var request_token = token();
var client_hint_headers = [
"sec-ch-ua",
"sec-ch-ua-arch",
"sec-ch-ua-platform",
"sec-ch-ua-model",
];
const response = await fetch(`echo_ua_client_hints_received.py`);
client_hint_headers.forEach(header => {
if(response.headers.get(header+"-recieved")) {
assert_equals(response.headers.get(header+"-recieved").slice(0,1), "\"");
assert_equals(response.headers.get(header+"-recieved").slice(-1), "\"");
}
});
}, 'User agent client hint header values are surrounded by quotes');
</script>