Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(3)

Issue 1163583005: Add "registerable domain" support to OriginAccessEntry. (Closed)

Created:
4 years, 11 months ago by Mike West
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add "registerable domain" support to OriginAccessEntry. Document::firstPartyForCookies relies on "registerable domain" matching, as per https://tools.ietf.org/html/draft-west-first-party-cookies-03#section-2.1. I attempted to introduce this in https://codereview.chromium.org/1133223002, but misunderstood the 'AllowSubdomains' match setting. This patch introduces a new 'AllowRegisterableDomains' match setting which allows, for example, 'www.example.com' to match 'accounts.example.com'. It also adjusts Document::firstPartyForCookies to use the new setting. BUG=492971 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196327

Patch Set 1 #

Patch Set 2 : Fix. #

Total comments: 2

Patch Set 3 : Test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -15 lines) Patch
M Source/core/dom/Document.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/weborigin/OriginAccessEntry.h View 3 chunks +9 lines, -1 line 0 comments Download
M Source/platform/weborigin/OriginAccessEntry.cpp View 1 3 chunks +46 lines, -8 lines 0 comments Download
M Source/platform/weborigin/OriginAccessEntryTest.cpp View 1 2 9 chunks +104 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Mike West
WDYT, Jochen? We love the PSL, right? -mike
4 years, 11 months ago (2015-05-29 09:38:43 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1163583005/diff/20001/Source/platform/weborigin/OriginAccessEntry.cpp File Source/platform/weborigin/OriginAccessEntry.cpp (right): https://codereview.chromium.org/1163583005/diff/20001/Source/platform/weborigin/OriginAccessEntry.cpp#newcode105 Source/platform/weborigin/OriginAccessEntry.cpp:105: m_registerableDomain = host.substring(dot + 1); shouldn't this take this ...
4 years, 11 months ago (2015-05-29 11:36:43 UTC) #3
Mike West
https://codereview.chromium.org/1163583005/diff/20001/Source/platform/weborigin/OriginAccessEntry.cpp File Source/platform/weborigin/OriginAccessEntry.cpp (right): https://codereview.chromium.org/1163583005/diff/20001/Source/platform/weborigin/OriginAccessEntry.cpp#newcode105 Source/platform/weborigin/OriginAccessEntry.cpp:105: m_registerableDomain = host.substring(dot + 1); On 2015/05/29 11:36:43, jochen ...
4 years, 11 months ago (2015-05-29 12:06:42 UTC) #4
jochen (gone - plz use gerrit)
after some offline discussion, Mike promised me a test with a public suffix that contains ...
4 years, 11 months ago (2015-06-01 12:57:41 UTC) #5
Mike West
Thanks for reminding me of my promise. Test is up in the latest patchset.
4 years, 11 months ago (2015-06-02 06:57:35 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163583005/40001
4 years, 11 months ago (2015-06-02 11:56:41 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2015-06-02 11:59:22 UTC) #10
jochen (gone - plz use gerrit)
lgtm
4 years, 11 months ago (2015-06-02 16:20:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163583005/40001
4 years, 11 months ago (2015-06-02 16:23:53 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2015-06-02 16:28:00 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196327

Powered by Google App Engine
This is Rietveld 408576698