Skip to content

fix(browser): update chrome after same-document navigation - #811

Merged
vastsa merged 1 commit into
vastsa:mainfrom
yuxino:codex/fix-browser-in-page-navigation
Sep 21, 2026
Merged

vastsa merged 1 commit into
vastsa:mainfrom
yuxino:codex/fix-browser-in-page-navigation

Conversation

@yuxino

@yuxino yuxino commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Clicking an in-page link in the Browser panel scrolls to the right section, but leaves the address bar on the previous URL and the refresh action stuck on Stop. History API route changes also leave the toolbar stale.

Same-document navigation does not emit will-navigate. This change accepts the active main frame's current in-page URL while retaining the existing session invalidation and stale-navigation guards. The address and history controls now follow the page, and loading returns to Reload.

browser-before-after-hd.mp4

Real PI-Desktop before/after recording on macOS with a local test webpage; no mocked navigation. Operations are accelerated and idle time shortened.

Validation: regression cases fail before the fix and pass after it; 26 browser tests, desktop typecheck, lint, JS build, and bilingual documentation checks pass. Native app checks cover fragment links, History API routes, Back, Forward, and Reload. Updated the paired component specification and E2E scenario.

Candidate validation
  • Candidate: 590fc7b0cbac (full SHA recorded by the PR).
  • Base main: 0111e306c120ad5820688d7608cb37bad8fbcc1f.
  • Environment: macOS arm64, Electron 43.6.0.
  • E2E: E2E-BROWSER-in-page-navigation, manual native-app user path passed on the built candidate. Existing session-race service tests also pass; no fresh race recording is claimed.
  • No Rust, protocol, persistence, or permission-policy changes.

Fragment and History API navigation does not emit will-navigate, so the
browser kept its previous URL and loading state. Accept current main-frame
in-page events while preserving invalidated-session and stale-event guards.
@vastsa
vastsa merged commit 0f02bdc into vastsa:main Sep 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants