Bug 259492

Summary: PWA reset when opening an external link that redirects with URL replacement
Product: WebKit Reporter: alex
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Reproduction none

Description alex 2023-07-25 11:29:57 PDT
Created attachment 467116 [details]
Reproduction

When using a PWA added to the home screen, tapping a link that redirects with URL replacement will cause the PWA to reset when swiping back or using the back chevron from the in-app browser.

Note: Tapping the "Done" button does not cause this to happen.

Reproduction:

- Download index.html, server with http server.
- Install to home screen with iOS
- Tap "Click Me!" to increment counter
- Tap first link "[BROKEN!]", swipe back
- (wait for page to settle)
- observe count resets to 0
- Repeat above with second link "[WORKS!]", observe count does *not* reset
Comment 1 Radar WebKit Bug Importer 2023-08-01 11:30:19 PDT
<rdar://problem/113217909>