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

Issue 2306393002: Loosen strict 'Secure' checks for non-overlapping paths. (Closed)

Created:
4 years, 3 months ago by Mike West
Modified:
4 years, 3 months ago
Reviewers:
jww
CC:
cbentzel+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Loosen strict 'Secure' checks for non-overlapping paths. After a bit of discussion in [1], the latest strict 'Secure' draft [2] relaxes the equivalency checks for strict 'Secure' enforcement to allow a non-secure cookie whose path does not overlap an existing secure cookie's path to be set. That is, given a secure cookie at '/path', a non-secure cookie can be set at '/not-path', but not at '/path/subpath'. This carveout allows us to harden 'Secure' without breaking folks who host both secure and non-secure applications on a single domain. That turned out to be the root cause of the breakage Blizzard experienced in https://crbug.com/580770. [1]: https://github.com/httpwg/http-extensions/issues/223 [2]: https://tools.ietf.org/html/draft-ietf-httpbis-cookie-alone-01 BUG=580770 R=jww@chromium.org Committed: https://crrev.com/2c857fb16cdef9783ba3caeb586b9a3648114b17 Cr-Commit-Position: refs/heads/master@{#417237}

Patch Set 1 #

Total comments: 2

Patch Set 2 : jww@ #

Patch Set 3 : oops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -104 lines) Patch
M net/cookies/canonical_cookie.h View 1 1 chunk +11 lines, -6 lines 0 comments Download
M net/cookies/canonical_cookie.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/cookies/canonical_cookie_unittest.cc View 1 2 6 chunks +41 lines, -91 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 chunk +15 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
Mike West
Hey Joel, mind taking a look at this?
4 years, 3 months ago (2016-09-05 10:02:19 UTC) #3
jww
lgtm with minor nits. https://codereview.chromium.org/2306393002/diff/1/net/cookies/canonical_cookie.h File net/cookies/canonical_cookie.h (right): https://codereview.chromium.org/2306393002/diff/1/net/cookies/canonical_cookie.h#newcode112 net/cookies/canonical_cookie.h:112: // cookie's path (as per ...
4 years, 3 months ago (2016-09-06 22:45:10 UTC) #6
Mike West
On 2016/09/06 at 22:45:10, jww wrote: > lgtm with minor nits. > > https://codereview.chromium.org/2306393002/diff/1/net/cookies/canonical_cookie.h > ...
4 years, 3 months ago (2016-09-07 10:59:57 UTC) #7
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/2306393002/20001
4 years, 3 months ago (2016-09-07 11:00:19 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/220288)
4 years, 3 months ago (2016-09-07 11:28:51 UTC) #12
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/2306393002/40001
4 years, 3 months ago (2016-09-08 06:48:59 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-08 09:18:40 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 09:20:50 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2c857fb16cdef9783ba3caeb586b9a3648114b17
Cr-Commit-Position: refs/heads/master@{#417237}

Powered by Google App Engine
This is Rietveld 408576698