Chromium Code Reviews
DescriptionFix 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 #
Messages
Total messages: 13 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||