Skip to content

fix(linux): report same-document web view navigation - #1657

Merged
houko merged 1 commit into
mainfrom
fix/linux-webview-navigation-state-113
Nov 21, 2026
Merged

houko merged 1 commit into
mainfrom
fix/linux-webview-navigation-state-113

Conversation

@houko

@houko houko commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Report same-document URI, history and title changes through WebView.OnNavigationStateChange on Linux.
  • Read the URI, title and history together after WebKitGTK's notifications. Preserve the full-load event sequence and avoid reporting an intermediate state when a failed load rolls back.
  • Exercise pushState, replaceState, fragments, back and forward, later title changes, and the start and finish navigation states for a full load.

Verification

  • Reproduced the missing pushState notification on the original code with native WebKitGTK 6.0 on Ubuntu under Xvfb.
  • Passed all 12 native web-source test runs across three repetitions and all 14 Linux WebView backend tests.
  • go tool nsgo check -target linux -jobs 3 ./internal/platform/linux passed for arm64 and x64.

Refs #113

@github-actions github-actions Bot added bug Something isn't working size/S documentation Improvements or additions to documentation Linux labels Nov 21, 2026
@houko
houko merged commit d174aad into main Nov 21, 2026
19 of 21 checks passed
@houko
houko deleted the fix/linux-webview-navigation-state-113 branch November 21, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation Linux size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant