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

Issue 1939623002: Strict Secure Cookies re-implemented to be priority aware (Closed)

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

Description

Strict Secure Cookies re-implemented to be priority aware This implements Strict Secure Cookies to be priority-aware. Modifies the cookie eviction and garbage collection algorithms to evict low priority cookies first, then low priority secure cookies, followed by all other non-secure cookies, and finally all secure cookies. Our original Strict Secure Cookies implementation ignored priorities completely, which led to some surprising interactions with applications. This solution maintains a basic level of control over eviction order, while maintaining that, overall, secure cookies should be lowest on the eviction ladder (or highest: whichever you think means 'evicted later'). BUG=591686, 546820 R=mkwst@chromium.org Committed: https://crrev.com/c00ac71cdb3caff6710e3c35c0b23493c3cde0d3 Cr-Commit-Position: refs/heads/master@{#391926}

Patch Set 1 #

Patch Set 2 : Rebase on ToT #

Total comments: 20

Patch Set 3 : Nits from mkwst #

Patch Set 4 : Rebase on ToT #

Patch Set 5 : Fix Windows build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -123 lines) Patch
M net/cookies/cookie_monster.h View 1 2 3 chunks +4 lines, -9 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 4 6 chunks +134 lines, -40 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 8 chunks +259 lines, -74 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
jww
Mike, can you look at this?
4 years, 7 months ago (2016-04-30 07:08:04 UTC) #1
Mike West
Thank you, Joel. LGTM % nits and comments. https://codereview.chromium.org/1939623002/diff/20001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (left): https://codereview.chromium.org/1939623002/diff/20001/net/cookies/cookie_monster.cc#oldcode1877 net/cookies/cookie_monster.cc:1877: GarbageCollectNonSecure(non_expired_cookie_its, ...
4 years, 7 months ago (2016-05-04 08:08:20 UTC) #2
Mike West
On 2016/05/04 at 08:08:20, Mike West wrote: > Thank you, Joel. LGTM % nits and ...
4 years, 7 months ago (2016-05-04 08:09:02 UTC) #3
jww
https://codereview.chromium.org/1939623002/diff/20001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (left): https://codereview.chromium.org/1939623002/diff/20001/net/cookies/cookie_monster.cc#oldcode1877 net/cookies/cookie_monster.cc:1877: GarbageCollectNonSecure(non_expired_cookie_its, &secure_cookie_its); On 2016/05/04 08:08:19, Mike West (OOO until ...
4 years, 7 months ago (2016-05-05 18:56:27 UTC) #4
jww
On 2016/05/04 08:09:02, Mike West (OOO until the 6th) wrote: > On 2016/05/04 at 08:08:20, ...
4 years, 7 months ago (2016-05-05 18:56:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939623002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939623002/60001
4 years, 7 months ago (2016-05-05 18:59:08 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/143715)
4 years, 7 months ago (2016-05-05 20:05:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939623002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939623002/80001
4 years, 7 months ago (2016-05-05 20:18:50 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-05 22:22:02 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 22:24:32 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c00ac71cdb3caff6710e3c35c0b23493c3cde0d3
Cr-Commit-Position: refs/heads/master@{#391926}

Powered by Google App Engine
This is Rietveld 408576698