fix: add KVO on webView.url to catch SPA pushState navigation

didFinish only fires for cross-document (full page) navigations. After
loading https://claude.ai/login the SPA redirects authenticated users
via history.pushState to /new — this changes the URL visually but never
fires didFinish, so auth was never detected.

KVO on webView.url fires for every URL change including SPA pushState,
covering the case where the app routes client-side after the initial
page load. Both KVO and didFinish now call the same checkCurrentURL
helper so detection is not missed regardless of navigation type.
This commit is contained in:
superdooper86
2026-05-11 10:46:11 +02:00
parent 88252e4d59
commit 58b947e515
2 changed files with 16 additions and 7 deletions
+2 -2
View File
@@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.1-beta.10</string>
<string>1.2.1-beta.11</string>
<key>CFBundleVersion</key>
<string>58</string>
<string>59</string>
<key>LSMinimumSystemVersion</key>
<string>13.0</string>
<key>LSUIElement</key>