Bug 200345 - SameSite cookies missing after Safari Tab recovery
Summary: SameSite cookies missing after Safari Tab recovery
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 200307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-08-01 08:03 PDT by Chris Dumez
Modified: 2019-08-06 12:56 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2019-08-01 08:03:00 PDT
SameSite cookies missing after Safari Tab recovery.

Demo: https://rocky-fjord-97287.herokuapp.com

1. Load the page on iOS
2. Click the "Refresh Cookie Time" button
3. Reload the page a couple times and notice that the cookie time is there and does not change (cookie is served)
4. Kill MobileSafari
5. Relaunch MobileSafari
6. Reload the tab a couple times and notice that the cookie is nil for every reload (cookie is no longer served).

Reported on Twitter by Rafael Silva (@Rafael_falco).
Comment 1 Chris Dumez 2019-08-01 08:03:48 PDT
Service workers are involved as well. Here is the source:
https://github.com/xfalcox/safari-sw-samesite-bug
Comment 2 Radar WebKit Bug Importer 2019-08-01 08:06:28 PDT
<rdar://problem/53814606>
Comment 3 Alexey Proskuryakov 2019-08-02 13:32:30 PDT
*** Bug 200307 has been marked as a duplicate of this bug. ***
Comment 4 Rafael 2019-08-06 12:56:58 PDT
I can repro this bug on latest Mac OS Safari (12.1.1) if you enable the feature to re-open the last tabs on app start.

So this seems to affect both Mac OS and iOS on both current and next Safari.