Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Issue 2246613003: Update cookie value and attribute setting behavior to match other UAs (Closed)

Created:
4 years, 4 months ago by jww
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, bsittler, ifaaan_gmail.com, Mike West
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update cookie value and attribute setting behavior to match other UAs This is an attempt to bring Chrome's cookie behavior in line with the majority of other major UAs, and thus are de facto standards. The specific updates are: 1. An empty domain attribute value should be ignored as a non-attribute rather than setting an empty attribute value. 2. An empty cookie line (or a cookie line with ignored characters) should be treated as setting an empty value for the empty-key. BUG=601786 Committed: https://crrev.com/03e6ff8c614040f60d1a1d818411870ddb3b90e4 Cr-Commit-Position: refs/heads/master@{#412608}

Patch Set 1 #

Patch Set 2 : Updated ParsedCookie unittests #

Total comments: 20

Patch Set 3 : Fixes from mmenke #

Total comments: 10

Patch Set 4 : More fixes #

Patch Set 5 : iOS and unit test fixes #

Total comments: 8

Patch Set 6 : Fixes #

Patch Set 7 : Rebase on ToT #

Patch Set 8 : Simplification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -44 lines) Patch
M chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M net/cookies/cookie_store_unittest.h View 1 2 3 4 5 3 chunks +44 lines, -0 lines 0 comments Download
M net/cookies/parsed_cookie.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M net/cookies/parsed_cookie.cc View 1 2 3 4 5 6 7 3 chunks +18 lines, -10 lines 0 comments Download
M net/cookies/parsed_cookie_unittest.cc View 1 2 3 7 chunks +40 lines, -29 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
jww
mmenke@, can you take a look at this changes? Thanks!
4 years, 4 months ago (2016-08-13 07:15:41 UTC) #2
mmenke
I believe the cookie_store_unittest tests are run on iOS as well, using iOS's cookie store. ...
4 years, 4 months ago (2016-08-15 21:11:04 UTC) #4
jww
Good call about the iOS tests; I look forward to fixing those failures :-P I ...
4 years, 4 months ago (2016-08-16 02:24:23 UTC) #5
mmenke
Note that I'll want to see a green iOS try run before I sign off ...
4 years, 4 months ago (2016-08-16 15:06:47 UTC) #6
jww
Understood re: iOS. Will run those tests now and will get back to you once ...
4 years, 4 months ago (2016-08-16 18:18:17 UTC) #7
jww
On 2016/08/16 18:18:17, jww wrote: > Understood re: iOS. Will run those tests now and ...
4 years, 4 months ago (2016-08-16 21:09:36 UTC) #8
mmenke
On 2016/08/16 21:09:36, jww wrote: > On 2016/08/16 18:18:17, jww wrote: > > Understood re: ...
4 years, 4 months ago (2016-08-16 21:12:53 UTC) #9
jww
On 2016/08/16 21:12:53, mmenke wrote: > On 2016/08/16 21:09:36, jww wrote: > > On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 21:53:37 UTC) #10
jww
On 2016/08/16 21:53:37, jww wrote: > On 2016/08/16 21:12:53, mmenke wrote: > > On 2016/08/16 ...
4 years, 4 months ago (2016-08-17 00:00:26 UTC) #11
mmenke
Still also skeptical that the empty string check for the domain (And *only* the domain) ...
4 years, 4 months ago (2016-08-17 16:23:17 UTC) #16
jww
FWIW, regarding the empty string for domain, whether an attribute should accept the empty string ...
4 years, 4 months ago (2016-08-17 16:57:08 UTC) #17
mmenke
LGTM https://codereview.chromium.org/2246613003/diff/80001/net/cookies/parsed_cookie.cc File net/cookies/parsed_cookie.cc (right): https://codereview.chromium.org/2246613003/diff/80001/net/cookies/parsed_cookie.cc#newcode388 net/cookies/parsed_cookie.cc:388: if (!did_parse_token || it == end || *it ...
4 years, 4 months ago (2016-08-17 17:56:33 UTC) #18
jww
https://codereview.chromium.org/2246613003/diff/80001/net/cookies/parsed_cookie.cc File net/cookies/parsed_cookie.cc (right): https://codereview.chromium.org/2246613003/diff/80001/net/cookies/parsed_cookie.cc#newcode388 net/cookies/parsed_cookie.cc:388: if (!did_parse_token || it == end || *it != ...
4 years, 4 months ago (2016-08-17 18:19:19 UTC) #19
jww
thestig@, would you mind OWNER reviewing browsing_data?
4 years, 4 months ago (2016-08-17 18:19:59 UTC) #21
Lei Zhang
lgtm
4 years, 4 months ago (2016-08-17 18:24:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2246613003/140001
4 years, 4 months ago (2016-08-17 18:24:59 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-17 19:20:19 UTC) #27
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 19:22:00 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/03e6ff8c614040f60d1a1d818411870ddb3b90e4
Cr-Commit-Position: refs/heads/master@{#412608}

Powered by Google App Engine
This is Rietveld 408576698