Stop accepting cookie name-value pairs without an equal sign
Categories
(Core :: Networking: Cookies, defect, P2)
Tracking
()
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file, 1 obsolete file)
Gecko seems to be the only engine that currently accepts cookie name-value pairs without an equal sign, in violation of RFC 6265. This was added as a compatibility hack (see bug 169091) but perhaps we can remove this old hack now and become more compatible with other engines.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Backed out changeset b634b7b787d5 (bug 1609491) for wpt failures at /cookies/http-state/general-tests.html
Backout: https://hg.mozilla.org/integration/autoland/rev/7054c8e08428bd6d6952890a953839625e3c0613
Failure push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=b634b7b787d55ebc15d59edfb6cbc3e9772563a6
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=285650843&repo=autoland&lineNumber=1631
[task 2020-01-20T16:33:23.653Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0003 - Set expired cookie along with valid cookie.
[task 2020-01-20T16:33:23.653Z] 16:33:23 INFO - TEST-UNEXPECTED-FAIL | /cookies/http-state/general-tests.html | 0004 - Set nameless cookie. - assert_equals: expected "foo" but got ""
[task 2020-01-20T16:33:23.653Z] 16:33:23 INFO - createCookieTest/</<@http://web-platform.test:8000/cookies/http-state/resources/cookie-http-state-template.js:128:20
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO -
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0013 - Use last value for cookies with identical keys.
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0014 - Keep alphabetic key order.
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0015 - Keep alphabetic single-char key order.
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0016 - Keep non-alphabetic key order.
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0017 - Keep order if comma-separated.
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0018 - Ignore keys after semicolon.
[task 2020-01-20T16:33:23.658Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0019 - Ignore attributes after semicolon.
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0020 - Ignore Set-Cookie: =
.
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0021 - Set nameless cookie, given Set-Cookie: =x
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - TEST-PASS | /cookies/http-state/general-tests.html | 0022 - Set valueless cookie, given Set-Cookie: x=
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - TEST-UNEXPECTED-FAIL | /cookies/http-state/general-tests.html | 0023 - Ignore empty cookie string. - assert_equals: expected "foo" but got ""
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - createCookieTest/</<@http://web-platform.test:8000/cookies/http-state/resources/cookie-http-state-template.js:128:20
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO -
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - TEST-FAIL | /cookies/http-state/general-tests.html | 0024 - Ignore Set-Cookie: =
with other Set-Cookie
headers. - assert_equals: expected "foo" but got ""
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - createCookieTest/</<@http://web-platform.test:8000/cookies/http-state/resources/cookie-http-state-template.js:128:20
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - TEST-FAIL | /cookies/http-state/general-tests.html | 0025 - Ignore name- and value-less Set-Cookie: ; bar
. - assert_equals: expected "foo" but got ""
[task 2020-01-20T16:33:23.659Z] 16:33:23 INFO - createCookieTest/</<@http://web-platform.test:8000/cookies/http-state/resources/cookie-http-state-template.js:128:20
Assignee | ||
Comment 4•5 years ago
|
||
This is based on the recent changes in
https://github.com/httpwg/http-extensions/issues/159 and
https://github.com/httpwg/http-extensions/pull/1018.
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
The spec was recently changed to support nameless cookies, so this is WONTFIX now! https://github.com/httpwg/http-extensions/pull/1018
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
Description
•