Bug 183620

Summary: Resource Load Statistics: Immediately forward cookie access for domains with previous user interaction when there's an opener document
Product: WebKit Reporter: John Wilander <wilander>
Component: WebKit Misc.Assignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, commit-queue, dbates, esprehn+autocc, ews-watchlist, japhet, jlewis3, kangil.han, ryanhaddad, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=183577
https://bugs.webkit.org/show_bug.cgi?id=183641
https://bugs.webkit.org/show_bug.cgi?id=183714
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

John Wilander
Reported 2018-03-13 17:38:01 PDT
It turns out the fix in https://bugs.webkit.org/show_bug.cgi?id=183577 wasn't enough to address the compatibility issues with popups. Some of them just detect their unpartitioned cookies, auto-dismiss themselves, and expect their unpartitioned cookies to be available under the opener afterwards. We should grant them access if the popup's domain has had user interaction _previously_. Note that we still need the part in https://bugs.webkit.org/show_bug.cgi?id=183577 because if the popup's domain has not received user interaction previously, we will not grant it storage access on just the window open.
Attachments
Patch (30.20 KB, patch)
2018-03-13 17:54 PDT, John Wilander
no flags
Patch (30.20 KB, patch)
2018-03-13 18:00 PDT, John Wilander
no flags
Patch (32.35 KB, patch)
2018-03-13 18:31 PDT, John Wilander
no flags
John Wilander
Comment 1 2018-03-13 17:38:34 PDT
John Wilander
Comment 2 2018-03-13 17:54:10 PDT
John Wilander
Comment 3 2018-03-13 18:00:46 PDT
John Wilander
Comment 4 2018-03-13 18:31:59 PDT
John Wilander
Comment 5 2018-03-13 18:32:23 PDT
Added test cases as [ Pass ] in expectations files.
Brent Fulgham
Comment 6 2018-03-13 21:17:22 PDT
Comment on attachment 335754 [details] Patch R=me
John Wilander
Comment 7 2018-03-13 21:53:09 PDT
Comment on attachment 335754 [details] Patch Thanks, Brent!
WebKit Commit Bot
Comment 8 2018-03-13 22:18:02 PDT
Comment on attachment 335754 [details] Patch Clearing flags on attachment: 335754 Committed r229597: <https://trac.webkit.org/changeset/229597>
WebKit Commit Bot
Comment 9 2018-03-13 22:18:04 PDT
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 10 2018-03-14 11:23:33 PDT
John Wilander
Comment 11 2018-03-14 11:42:01 PDT
(In reply to Ryan Haddad from comment #10) > This change seems to have caused storageAccess LayoutTest failures: > https://build.webkit.org/results/ > Apple%20High%20Sierra%20Release%20WK2%20(Tests)/r229601%20(3439)/results.html It's probably the network process that keeps state between test runs. I'll try to come up with a fix.
John Wilander
Comment 12 2018-03-14 12:41:46 PDT
I have a fix I'll put up for review. Thanks for letting me know, Ryan!
John Wilander
Comment 13 2018-03-14 12:55:02 PDT
Note You need to log in before you can comment on or make changes to this bug.