Commit 0e97412c authored by Mike West's avatar Mike West Committed by Commit Bot

Adjusting //cookie/http-state tests name0031 and name0032.

Chrome and Firefox aligned on treating `"foo;bar"=baz` as a nameless cookie
with a value of `"foo`, and `"foo\"bar;baz"=qux` as a nameless cookie with
a value of `"foo\"bar`. That is, they both stop parsing the name/value pair
when they hit a `;`. This seems aligned with step 1 of
https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-05#section-5.3,
which defines the `name-value-pair` as everything up to but not including
the first `;`.

Adjusting these tests accordingly, as discussed in
https://github.com/httpwg/http-extensions/issues/1136.

Change-Id: I6930f8e18a8c573b21eaea5614e14c3b957ea0bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2128135Reviewed-by: default avatarLily Chen <chlily@chromium.org>
Commit-Queue: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755255}
parent c1743576
......@@ -29,8 +29,8 @@ PASS name0027 - name0027
FAIL name0028 - name0028 assert_equals: expected "" but got "a"
PASS name0029 - name0029
PASS name0030 - name0030
FAIL name0031 - name0031 assert_equals: expected "" but got "\"foo"
FAIL name0032 - name0032 assert_equals: expected "" but got "\"foo\\\"bar"
PASS name0031 - name0031
PASS name0032 - name0032
FAIL name0033 - name0033 assert_equals: expected "" but got "aaa"
Harness: the test ran to completion.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment