mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
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
25 lines
865 B
HTML
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> |