iOS app: confirm() in the page always answers Cancel #453

Closed
opened 2026-11-13 08:53:26 -08:00 by rays · 3 comments
Owner

WebViewController is the web view's WKUIDelegate but does not implement webView(_:runJavaScriptConfirmPanelWithMessage:...) (nor the alert and prompt panels), so every confirm() in the page returns false at once in the app, with nothing shown: whatever asks first (sharing a Patreon address, and the page's other 9 confirm() calls in web/src) cannot go ahead there. Found looking into Share in the app.

WebViewController is the web view's WKUIDelegate but does not implement `webView(_:runJavaScriptConfirmPanelWithMessage:...)` (nor the alert and prompt panels), so every `confirm()` in the page returns false at once in the app, with nothing shown: whatever asks first (sharing a Patreon address, and the page's other 9 confirm() calls in web/src) cannot go ahead there. Found looking into Share in the app.
rays added the bug label 2026-11-13 08:53:26 -08:00
Author
Owner

Fix in 614f270 on main: WebViewController implements webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:), an alert with Cancel and OK (Cancel at once if another alert is already up). alert() and prompt() are not used by the page, so they are left out. Not compiled here (no Xcode): left open until it is built and tried on the phone, e.g. Delete from iPX under a file's ⋯ menu.

Fix in 614f270 on main: WebViewController implements webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:), an alert with Cancel and OK (Cancel at once if another alert is already up). alert() and prompt() are not used by the page, so they are left out. Not compiled here (no Xcode): left open until it is built and tried on the phone, e.g. Delete from iPX under a file's ⋯ menu.
Author
Owner

Seen again 2026-11-14 ~21:00 UTC: deleting from the iOS app did nothing. No DELETE reached ipx-web or ipx from any client in the last 48 h (Tempo), so the page stopped before the request: the episode's Delete asks with confirm() (web/src/items.ts:644), which an app built before 614f270 answers Cancel without showing anything. Unsubscribe uses the page's own dialog and does not depend on this. Stays open until the app is built with 614f270 and tried on the phone.

Seen again 2026-11-14 ~21:00 UTC: deleting from the iOS app did nothing. No DELETE reached ipx-web or ipx from any client in the last 48 h (Tempo), so the page stopped before the request: the episode's Delete asks with confirm() (web/src/items.ts:644), which an app built before 614f270 answers Cancel without showing anything. Unsubscribe uses the page's own dialog and does not depend on this. Stays open until the app is built with 614f270 and tried on the phone.
Author
Owner

Confirmed working by the owner on 2026-11-17: Delete from iPX on a downloaded episode works in the page (eda77e8) and the app (614f270, TestFlight build 15).

Confirmed working by the owner on 2026-11-17: Delete from iPX on a downloaded episode works in the page (eda77e8) and the app (614f270, TestFlight build 15).
rays closed this issue 2026-11-17 06:00:16 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#453