Bug 236943

Summary: File download link in PWA cannot be exited
Product: WebKit Reporter: William O'Connell <webkitbugs>
Component: Service WorkersAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: bdakin, bfulgham, tykhorses+webkitbugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   

Description William O'Connell 2022-02-20 13:33:48 PST
When clicking an <a> with a download attribute, Safari asks which app should be used to open the file. However, in an installed PWA the user becomes stranded with no way to go back other than force quitting and relaunching the app.

Steps to reproduce:
1) Visit https://safari-download-bug.surge.sh/ on an iPhone
2) Add the site to your home screen
3) Open it from the home screen
4) Click the link

The app ends up on a file download screen (screenshot: https://will-o.co/WitWcA9Sqj.png) with no other navigation. Even the swipe back gesture doesn't work. There should be a "done" or "back" button somewhere.

Found on an iPhone X running iOS 15.2.1
Comment 1 Radar WebKit Bug Importer 2022-02-21 10:11:37 PST
Comment 2 Brent Fulgham 2022-06-23 15:26:28 PDT
This is actually tracked here:

Unfortunately, this is an issue outside of the WebKit project and cannot be resolved with a check-in for this project. Therefore this is marked as "RESOLVED | MOVED".
Comment 3 Sam Sneddon [:gsnedders] 2023-04-03 09:15:12 PDT
*** Bug 231892 has been marked as a duplicate of this bug. ***