зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1470137 [wpt PR 11605] - Sec-Metadata: Strings are quoted in structured headers., a=testonly
Automatic update from web-platform-testsSec-Metadata: Strings are quoted in structured headers.
So this patch adds quotes.
See https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-06#section-3.7
and 98f7c1253e
.
Bug: 843478
Change-Id: I29dfa3a87e3c65a1b64009e173faa6d0f41b40f4
Reviewed-on: https://chromium-review.googlesource.com/1109819
Commit-Queue: Mike West <mkwst@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Andy Paicu <andypaicu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569554}
--
wpt-commits: d6020b4e6f97afaa89624f316611061673eb3f53
wpt-pr: 11605
This commit is contained in:
Родитель
2d17fe34f2
Коммит
7407d57594
|
@ -570703,7 +570703,7 @@
|
|||
"support"
|
||||
],
|
||||
"fetch/sec-metadata/fetch.tentative.https.sub.html": [
|
||||
"39325c2758284c6d36d996c21cdb7e8845a17ea3",
|
||||
"80ed267f8a5a8aa6bf7e146af4836b2b56430721",
|
||||
"testharness"
|
||||
],
|
||||
"fetch/sec-metadata/iframe.tentative.https.sub.html": [
|
||||
|
@ -570723,7 +570723,7 @@
|
|||
"support"
|
||||
],
|
||||
"fetch/sec-metadata/resources/helper.js": [
|
||||
"64d204e36b6ab3b7268d6fd8e0694081222b98ee",
|
||||
"ee91fc4ff739485eed66c7ebc8fb19311f205536",
|
||||
"support"
|
||||
],
|
||||
"fetch/sec-metadata/resources/post-to-owner.py": [
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
.then(j => {
|
||||
assert_header_equals(j.header, {
|
||||
"cause": undefined,
|
||||
"destination": "\"\"",
|
||||
"destination": "",
|
||||
"target": "subresource",
|
||||
"site": "same-origin"
|
||||
});
|
||||
|
@ -22,7 +22,7 @@
|
|||
.then(j => {
|
||||
assert_header_equals(j.header, {
|
||||
"cause": undefined,
|
||||
"destination": "\"\"",
|
||||
"destination": "",
|
||||
"target": "subresource",
|
||||
"site": "same-site"
|
||||
});
|
||||
|
@ -35,7 +35,7 @@
|
|||
.then(j => {
|
||||
assert_header_equals(j.header, {
|
||||
"cause": undefined,
|
||||
"destination": "\"\"",
|
||||
"destination": "",
|
||||
"target": "subresource",
|
||||
"site": "cross-site"
|
||||
});
|
||||
|
|
|
@ -2,6 +2,7 @@ function parse_metadata(value) {
|
|||
let result = {};
|
||||
value.split(',').forEach(item => {
|
||||
let parsed = item.trim().split('=');
|
||||
parsed[1] = parsed[1].trim().replace(/^"|"$/g, '');
|
||||
result[parsed[0]] = parsed[1];
|
||||
});
|
||||
return result;
|
||||
|
|
Загрузка…
Ссылка в новой задаче