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

Issue 2158863003: Fix CanonicalCookie::IsEquivalentForSecureCookieMatching (Closed)

Created:
4 years, 5 months ago by mmenke
Modified:
4 years, 5 months ago
Reviewers:
Mike West
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

Fix CanonicalCookie::IsEquivalentForSecureCookieMatching This method relies on the Source() of a cookie, which is not set consistently. In particular, it's not set on cookies that have been loaded from disk. This CL fixes the method, and removes storing the source URL on cookies entirely to protect against future bugs. Since the new implementation of IsEquivalentForSecureCookieMatching is a little more expensive, also reorder code to call it a bit less often. BUG=620770, 624004 Committed: https://crrev.com/2830b0728b273d6fe15ecb28a1c27aa6cddd6c08 Cr-Commit-Position: refs/heads/master@{#406567}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -19 lines) Patch
M net/cookies/canonical_cookie.h View 3 chunks +5 lines, -15 lines 0 comments Download
M net/cookies/canonical_cookie.cc View 3 chunks +13 lines, -2 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
mmenke
4 years, 5 months ago (2016-07-19 00:25:27 UTC) #6
Mike West
LGTM! Getting pretty close now. Thanks for this series of patches. :)
4 years, 5 months ago (2016-07-20 07:31:35 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/2158863003/1
4 years, 5 months ago (2016-07-20 14:45:33 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-20 16:03:06 UTC) #15
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 16:03:08 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 16:04:30 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2830b0728b273d6fe15ecb28a1c27aa6cddd6c08
Cr-Commit-Position: refs/heads/master@{#406567}

Powered by Google App Engine
This is Rietveld 408576698