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

Issue 1075163002: Ancestors count towards first-partyness. (Closed)

Created:
5 years, 8 months ago by Mike West
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Ancestors count towards first-partyness. We currently set requests' "firstPartyForCookies" property based on the top-level document's URL. We ought to harden this property to account for good.com -> evil.com -> good.com ancestor chains. The top-level 'good.com' should be considered a first-party context. The nested 'good.com' should not. This CL adds this behavior behind a runtime flag. If the intent to ship at [1] is approved, I'll remove the flag in a followup CL. [1]: https://groups.google.com/a/chromium.org/d/msg/blink-dev/ZvMEJMSU6po/wKWAfpIe6vUJ BUG=459154 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193884

Patch Set 1 #

Patch Set 2 : Oops. #

Patch Set 3 : Tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -0 lines) Patch
M Source/core/dom/Document.cpp View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/tests/WebDocumentTest.cpp View 1 2 2 chunks +198 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/empty.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-data.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-originA.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-originA-in-originA.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-originA-in-originB.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-originB.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-originB-in-originA.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-originB-in-originB.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/first_party/nested-srcdoc.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
Mike West
Hey Jochen, this is more or less what I was pinging you about this morning. ...
5 years, 8 months ago (2015-04-10 09:27:27 UTC) #2
jochen (gone - plz use gerrit)
hum, not sure about this one can we estimate what the impact of this change ...
5 years, 8 months ago (2015-04-10 12:21:44 UTC) #3
Mike West
On 2015/04/10 at 12:21:44, jochen wrote: > hum, not sure about this one > > ...
5 years, 8 months ago (2015-04-10 19:50:30 UTC) #4
jochen (gone - plz use gerrit)
On 2015/04/10 at 19:50:30, mkwst wrote: > On 2015/04/10 at 12:21:44, jochen wrote: > > ...
5 years, 8 months ago (2015-04-13 13:01:25 UTC) #5
Mike West
On 2015/04/13 13:01:25, jochen wrote: > On 2015/04/10 at 19:50:30, mkwst wrote: > > On ...
5 years, 8 months ago (2015-04-13 13:37:48 UTC) #6
jochen (gone - plz use gerrit)
lgtm since it matches FF
5 years, 8 months ago (2015-04-15 13:29:43 UTC) #7
Mike West
Would you mind taking another look, now that there are actually tests and I rewrote ...
5 years, 8 months ago (2015-04-16 08:08:04 UTC) #8
jochen (gone - plz use gerrit)
still lgtm
5 years, 8 months ago (2015-04-16 14:45:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1075163002/40001
5 years, 8 months ago (2015-04-16 14:49:19 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=193884
5 years, 8 months ago (2015-04-16 16:22:34 UTC) #12
Mike West
5 years, 7 months ago (2015-05-05 16:18:26 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1118373007/ by mkwst@chromium.org.

The reason for reverting is: This apparently produces behavior that diverges
from Firefox. Reverting as I'm OOO, and can't really investigate until next
week.

BUG=482812.

Powered by Google App Engine
This is Rietveld 408576698