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

Issue 1705753002: Evict non-secure cookies less agressively. (Closed)

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

Description

Evict non-secure cookies less agressively. The current implementation of strict-secure cookies wipes all non-secure cookies when an origin exceeds ~180. This is a bit agressive, and has real impact on users. This patch softens that to remove only the number of non-secure cookies necessary to get under the ~150 cap. If a user has 150 secure cookies, we'll still wipe all non-secure cookies, but that seems less likely to impact users than the current behavior. The patch is a bit more complicated than I expected due to interactions with the Chrome-only "priority" feature we shipped back in 2013. In short, we execute priority-driven removal of non-secure cookies first, and only touch secure cookies if necessary. BUG=581588 R=mmenke@chromium.org, jww@chromium.org Committed: https://crrev.com/162d27135f2ee44ae01341de055d1b827a930767 Cr-Commit-Position: refs/heads/master@{#376204}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Test. #

Patch Set 3 : Feedback. #

Patch Set 4 : Compiling is fun. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -157 lines) Patch
M net/cookies/cookie_monster.h View 1 2 3 3 chunks +28 lines, -3 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 5 chunks +171 lines, -81 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 8 chunks +220 lines, -73 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
Mike West
Hi jww@ and mmenke@! Would you mind taking a look at this patch? -mike
4 years, 10 months ago (2016-02-17 15:54:38 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705753002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705753002/1
4 years, 10 months ago (2016-02-17 15:55:02 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/94354)
4 years, 10 months ago (2016-02-17 16:05:46 UTC) #5
mmenke
https://codereview.chromium.org/1705753002/diff/1/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/1705753002/diff/1/net/cookies/cookie_monster.cc#newcode2014 net/cookies/cookie_monster.cc:2014: COOKIE_PRIORITY_MEDIUM); This seems so much more complicated than necessary. ...
4 years, 10 months ago (2016-02-17 18:41:31 UTC) #6
Mike West
On 2016/02/17 at 18:41:31, mmenke wrote: > https://codereview.chromium.org/1705753002/diff/1/net/cookies/cookie_monster.cc > File net/cookies/cookie_monster.cc (right): > > https://codereview.chromium.org/1705753002/diff/1/net/cookies/cookie_monster.cc#newcode2014 ...
4 years, 10 months ago (2016-02-17 19:00:57 UTC) #7
jww
Yikes, this is a beast of a change for a fix. Sorry for having to ...
4 years, 10 months ago (2016-02-18 01:05:19 UTC) #8
mmenke
Feel free to land with just jww's signoff - I want to learn this code, ...
4 years, 10 months ago (2016-02-18 01:09:04 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705753002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705753002/20001
4 years, 10 months ago (2016-02-18 10:48:05 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705753002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705753002/40001
4 years, 10 months ago (2016-02-18 11:50:16 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/158418)
4 years, 10 months ago (2016-02-18 12:24:19 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705753002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705753002/60001
4 years, 10 months ago (2016-02-18 13:08:36 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-18 14:24:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705753002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705753002/60001
4 years, 10 months ago (2016-02-18 18:10:10 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-18 18:21:37 UTC) #23
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/162d27135f2ee44ae01341de055d1b827a930767 Cr-Commit-Position: refs/heads/master@{#376204}
4 years, 10 months ago (2016-02-18 18:22:38 UTC) #25
Mike West
4 years, 9 months ago (2016-03-03 16:10:20 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1762693002/ by mkwst@chromium.org.

The reason for reverting is: Let's see if the automagical reversion thingie will
work on a ~2 week old patch.

```
I updated the eviction algorithm with our initial pass at a merger between
leave-secure-cookies-along and cookie-priorities, and neglected to ensure that
that new algorithm was safely locked up behind the "strict secure cookies"
experiment. That patch is in M50.

I think the right thing to do is to revert
https://codereview.chromium.org/1705753002 on the M50 branch so that we retain
the status quo behavior for beta. That means that we're going to have to wait a
bit longer to start ratcheting down on cookies, which is unfortunate, but the
safe choice this late in the game.
```

BUG=591720.

Powered by Google App Engine
This is Rietveld 408576698