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

Issue 2046593003: Fix Document::firstPartyForCookies() for OOPIFs. (Closed)

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

Description

Fix Document::firstPartyForCookies() for OOPIFs. The current usage of topDocument() in firstPartyForCookies() isn't correct, since topDocument() doesn't actually always return the top frame's Document, even when it's local. For example, this will happen when called from the bottom frame in an A-B-A hierarchy. In addition, when the top frame is remote, topDocumentURL should use the top frame's origin, rather than the current frame's origin. BUG=617677 Committed: https://crrev.com/66606be397f2a0ba853b32dbe335a131e59bd3c7 Cr-Commit-Position: refs/heads/master@{#398561}

Patch Set 1 #

Patch Set 2 : Use the top frame in the remote case and add a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -5 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
alexmos
Mike, can you please take a look? I'm pretty sure this was just a misuse ...
4 years, 6 months ago (2016-06-06 18:07:41 UTC) #2
Mike West
On 2016/06/06 at 18:07:41, alexmos wrote: > Mike, can you please take a look? I'm ...
4 years, 6 months ago (2016-06-07 05:42:40 UTC) #3
alexmos
Thanks! I've fixed the remote case to use the top frame and added a test ...
4 years, 6 months ago (2016-06-08 00:29:24 UTC) #6
Mike West
LGTM, thanks!
4 years, 6 months ago (2016-06-08 11:49:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046593003/20001
4 years, 6 months ago (2016-06-08 14:39:44 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-08 15:28:44 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 15:31:42 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/66606be397f2a0ba853b32dbe335a131e59bd3c7
Cr-Commit-Position: refs/heads/master@{#398561}

Powered by Google App Engine
This is Rietveld 408576698