| Summary: | Cookies not available when requestStorageAccess successfully resolves after "allow" in ITP prompt | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ulf Liedberg <ulf> | ||||
| Component: | New Bugs | Assignee: | John Wilander <wilander> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | achristensen, commit-queue, webkit-bug-importer, wilander | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | Mac | ||||||
| OS: | macOS 10.13 | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=188830 | ||||||
| Attachments: |
|
||||||
|
Description
Ulf Liedberg
2018-08-21 04:36:25 PDT
Thanks, Ulf! Created attachment 347705 [details]
Patch
I found the bug, and it's related to the other bug you reported about the prompt showing the full host names instead of eTLD+1s. The specific code path for the prompt sends the host names instead of the eTLD+1s which means storage access is granted for the host and not the eTLD+1. Then, when cookie resolution happens, there is no storage access entry for the eTLD+1 and thus no cookies. The second code path, i.e. without a prompt, correctly stores and entry for the eTLD+1 and resolution works. Again, thanks for the bug report, Ulf! Comment on attachment 347705 [details]
Patch
Thanks, Alex!
Comment on attachment 347705 [details] Patch Clearing flags on attachment: 347705 Committed r235145: <https://trac.webkit.org/changeset/235145> All reviewed patches have been landed. Closing bug. Happy to help! |