Bug 217770 - Twitter PWA saved to Homescreen displays confused login state
Summary: Twitter PWA saved to Homescreen displays confused login state
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari 14
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-15 11:19 PDT by Kenneth Kufluk
Modified: 2020-10-22 11:20 PDT (History)
4 users (show)

See Also:


Attachments
Install Twitter website to homescreen shows bad login state (56.83 MB, video/mp4)
2020-10-15 11:19 PDT, Kenneth Kufluk
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Kufluk 2020-10-15 11:19:53 PDT
Created attachment 411468 [details]
Install Twitter website to homescreen shows bad login state

On iPhone XS, iOS14. I use Safari to load twitter.com.
I log into my account, and browse around.
I choose to save Twitter to my homescreen.
I then load Twitter from my homescreen.

Expected:
EITHER:
- still logged into Twitter
- logged out of Twitter

Actual:
- Page shows my account, but no content will load.

I suspect that the problem is that the homescreened site is sharing a serviceworker with safari but not sharing cookies.
I suspect the page showing my account is from the serviceworker cache, but the site does not have the right cookies to be able to make further requests.
Swipe-up the homescreened site and re-opening will show a logged-out state.

This bug is not always reproducible, I think because the serviceworker needs to be installed and to cache a page.
Comment 1 Radar WebKit Bug Importer 2020-10-22 11:20:29 PDT
<rdar://problem/70581513>