Skip to content

Commit c43b6cf

Browse files
Fix NSURLErrorFrameLoadInterrupted reload loop and patch Vite arbitrary file read vulnerability (#5726)
## iOS: Ignore error code 102 in `didFailProvisionalNavigation` Error `NSURLErrorFrameLoadInterrupted` (code 102) is fired when a navigation is cancelled mid-flight — common during fast client-side routing (e.g. Vue Router `router.push`) and OAuth redirect flows. The existing handler was triggering a full root-page reload on this benign error, breaking auth flows. Added an early return alongside the existing `-999` guard: ```swift if (error as NSError)._code == (-999) { return } if (error as NSError)._code == 102 { return } // NSURLErrorFrameLoadInterrupted ``` ## Dependency: Vite 6.4.1 → 6.4.2 Patches [GHSA advisory] **Arbitrary File Read via Vite Dev Server WebSocket** affecting all `6.x` releases up to and including `6.4.1`. Updated `package.json` and regenerated `package-lock.json` in `apps/pwabuilder/Frontend`. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JudahGabriel <312936+JudahGabriel@users.noreply.github.com> Co-authored-by: Judah Gabriel Himango <judahgabriel@gmail.com>
1 parent 672d013 commit c43b6cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/pwabuilder/Resources/IOS/ios-project-src/pwa-shell/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ class ViewController: UIViewController, WKNavigationDelegate, UIDocumentInteract
167167
htmlIsLoaded = false;
168168

169169
if (error as NSError)._code == (-999) { return }
170+
if (error as NSError)._code == 102 { return }
170171

171172
self.overrideUIStyle(toDefault: true);
172173
webView.isHidden = true;

0 commit comments

Comments
 (0)