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

Issue 1097593002: Delete session cookies immediately after loading the cookie DB. (Closed)

Created:
5 years, 8 months ago by erikchen
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@migrate_to_v9
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete session cookies immediately after loading the cookie DB. Previously, the session cookies were deleted after all cookies were loaded into memory. This allows for a race condition where new session cookies are inserted into the database while the cookies are being loaded into memory, which causes the new session cookies to also be deleted. BUG= Committed: https://crrev.com/ca924dcfb4f3c6b89e0c40898e42aec349b6b843 Cr-Commit-Position: refs/heads/master@{#326672}

Patch Set 1 #

Patch Set 2 : Add unit test. #

Patch Set 3 : Fix calls to constructor for base::Time(). #

Patch Set 4 : Fix memory leak in unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -3 lines) Patch
M content/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 2 3 2 chunks +85 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
erikchen
erikwright: Please review. This CL depends on https://codereview.chromium.org/1083623003/.
5 years, 8 months ago (2015-04-16 21:58:29 UTC) #2
erikwright (departed)
LGTM
5 years, 8 months ago (2015-04-17 01:22:00 UTC) #3
erikwright (departed)
On 2015/04/17 01:22:00, erikwright wrote: > LGTM Actually, is it possible to add a regression ...
5 years, 8 months ago (2015-04-17 01:22:44 UTC) #4
erikchen
erikwright: Add a unit test. PTAL
5 years, 8 months ago (2015-04-17 20:42:58 UTC) #8
erikwright (departed)
LGTM. I assume you confirmed the test fails before your change?
5 years, 8 months ago (2015-04-17 20:48:10 UTC) #9
erikchen
On 2015/04/17 20:48:10, erikwright wrote: > LGTM. I assume you confirmed the test fails before ...
5 years, 8 months ago (2015-04-17 20:51:28 UTC) #10
erikchen
On 2015/04/17 20:51:28, erikchen wrote: > On 2015/04/17 20:48:10, erikwright wrote: > > LGTM. I ...
5 years, 8 months ago (2015-04-17 20:51:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097593002/80001
5 years, 8 months ago (2015-04-17 20:53:19 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/13421)
5 years, 8 months ago (2015-04-17 21:45:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097593002/80001
5 years, 8 months ago (2015-04-17 21:50:32 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/7485)
5 years, 8 months ago (2015-04-17 22:19:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097593002/100001
5 years, 8 months ago (2015-04-20 18:03:20 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/56955)
5 years, 8 months ago (2015-04-20 22:31:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097593002/100001
5 years, 8 months ago (2015-04-23 16:16:08 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/58405)
5 years, 8 months ago (2015-04-23 17:51:46 UTC) #28
erikchen
On 2015/04/23 17:51:46, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 8 months ago (2015-04-23 18:06:14 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097593002/120001
5 years, 8 months ago (2015-04-23 21:30:36 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years, 8 months ago (2015-04-23 22:22:28 UTC) #33
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/ca924dcfb4f3c6b89e0c40898e42aec349b6b843 Cr-Commit-Position: refs/heads/master@{#326672}
5 years, 8 months ago (2015-04-23 22:23:18 UTC) #34
Justin Donnelly
5 years, 8 months ago (2015-04-23 23:56:21 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:120001) has been created in
https://codereview.chromium.org/1077963006/ by jdonnelly@chromium.org.

The reason for reverting is: This CL broke the Win7 Tests (dbg)(1) bot.

https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2....

Powered by Google App Engine
This is Rietveld 408576698