fix(webkit): clarify js fallback log messages for SPA navigation
- commit
- bef9811bb3a36659d9ba790fdb13bbc01b43fa0d
- author
- bnema · · 2026-01-08 17:41 UTC
- parent
- f291bc4
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +2 -2
M internal/infrastructure/webkit/webview.go +2 -2
| @@ -778,7 +778,7 @@ func (wv *WebView) GoBack(ctx context.Context) error { | |||
| 778 | 778 | // Fall back to JavaScript history.back() for SPA navigation | |
| 779 | 779 | // This handles pushState/replaceState history that WebKit's BackForwardList doesn't track | |
| 780 | 780 | wv.RunJavaScript(ctx, "history.back()", "") | |
| 781 | - | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go back (js)") | |
| 781 | + | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go back (js fallback)") | |
| 782 | 782 | return nil | |
| 783 | 783 | } | |
| 784 | 784 | ||
| @@ -800,7 +800,7 @@ func (wv *WebView) GoForward(ctx context.Context) error { | |||
| 800 | 800 | // Fall back to JavaScript history.forward() for SPA navigation | |
| 801 | 801 | // This handles pushState/replaceState history that WebKit's BackForwardList doesn't track | |
| 802 | 802 | wv.RunJavaScript(ctx, "history.forward()", "") | |
| 803 | - | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go forward (js)") | |
| 803 | + | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go forward (js fallback)") | |
| 804 | 804 | return nil | |
| 805 | 805 | } | |
| 806 | 806 | ||
| @@ -778,7 +778,7 @@ func (wv *WebView) GoBack(ctx context.Context) error { | |||||
| 778 | // Fall back to JavaScript history.back() for SPA navigation | 778 | // Fall back to JavaScript history.back() for SPA navigation | ||
| 779 | // This handles pushState/replaceState history that WebKit's BackForwardList doesn't track | 779 | // This handles pushState/replaceState history that WebKit's BackForwardList doesn't track | ||
| 780 | wv.RunJavaScript(ctx, "history.back()", "") | 780 | wv.RunJavaScript(ctx, "history.back()", "") | ||
| 781 | - | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go back (js)") | 781 | + | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go back (js fallback)") |
| 782 | return nil | 782 | return nil | ||
| 783 | } | 783 | } | ||
| 784 | 784 | ||||
| @@ -800,7 +800,7 @@ func (wv *WebView) GoForward(ctx context.Context) error { | |||||
| 800 | // Fall back to JavaScript history.forward() for SPA navigation | 800 | // Fall back to JavaScript history.forward() for SPA navigation | ||
| 801 | // This handles pushState/replaceState history that WebKit's BackForwardList doesn't track | 801 | // This handles pushState/replaceState history that WebKit's BackForwardList doesn't track | ||
| 802 | wv.RunJavaScript(ctx, "history.forward()", "") | 802 | wv.RunJavaScript(ctx, "history.forward()", "") | ||
| 803 | - | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go forward (js)") | 803 | + | log.Debug().Int("webview_id", int(wv.id)).Msg("webview go forward (js fallback)") |
| 804 | return nil | 804 | return nil | ||
| 805 | } | 805 | } | ||
| 806 | 806 | ||||