Skip to content

fix: keep Page Map search shortcuts current for visible controls - #4607

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4474
Oct 28, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4474

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Page Map's search reads its shortcut availability from the rendered rows. Refresh its scoped keys after rendering, so filtering away every entry removes ArrowDown and Enter and clearing the query restores them. The phone and desktop regression assertions both fail before the refresh and pass afterward.

The sweep introduced in #3456 also compared hidden controls. The reported step activates a Page Map contribution, which closes the native dialog before its deferred close handler refreshes the search field. Restrict the snapshot to visible elements: the sweep still checks the shortcuts a reader can use, including a reopened dialog, without demanding current metadata on a hidden field. No visible layout or styling changes.

Validation: four focused browser cases passed (dynamic-widgets sweep, both filtering viewports, and Page Map keyboard navigation), 695 runtime tests passed, and pnpm run check passed. The kernel is rebuilt.

CI evidence and reproduction limits

The JUnit records from scheduled runs 40492069054 and 40675368197 both report the search field retaining ArrowDown Enter after a Page Map contribution closes the dialog; the later run calls the contribution “Open queued.” The action's close path is in activateSheetControl in browser/runtime/page-map-dialog.js, and the search scope's predicates inspect visible rows.

Both the current sweep and the older handle-based input driver passed on current main before this change. An attempt to run the original revision could not start because its pinned Chromium headless shell (build 1243) is absent here. The deterministic before/after reproduction is the open dialog's empty-filter failure; the hidden-field diagnosis rests on the CI diagnostic and the close path, rather than a locally reproduced historical sweep failure.

Closes #4474 — automated triage

The shortcut sweep now compares controls the page presents, preserving its check for stale usable keys while leaving hidden native-dialog fields to their deferred close update. Filtering the open Page Map still exposed a real missing DOM invalidation: repaint its scoped keys after rendering rows. The phone and desktop empty-filter assertions failed before this refresh and pass after it.

Closes #4474
@leaf-agent
leaf-agent merged commit 473ec55 into main Oct 28, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4474 branch October 28, 2026 16:07
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.

Page Map restore leaves stale shortcuts on an option input

1 participant