8000 🤖 Return command-line focus to the page on close by repparw · Pull Request #5576 · tridactyl/tridactyl · GitHub
[go: up one dir, main page]

Skip to content

🤖 Return command-line focus to the page on close - #5576

Open
repparw wants to merge 1 commit into
tridactyl:masterfrom
repparw:fix/reopen
Open

repparw wants to merge 1 commit into
tridactyl:masterfrom
repparw:fix/reopen

Conversation

@repparw
@repparw repparw commented Nov 30, 2026
Copy link
Copy Markdown
Contributor

Summary

Close the command-line iframe synchronously through an event on its own document so the page receives the next key. Ignore refresh callbacks from closed sessions and avoid focusing an already-focused input during resize. Repeated calls to focus also request buffered page keys.

Evidence

With 300 tabs, type :taball, then send Space, Escape and :tab zebra as one keyboard action from the page. Master failed all five cold attempts. The patch passed all five and another 30 consecutive cold attempts. The warm-list and 200 ms delayed controls passed five times each before and after. The original audit sequence produced tabopen ab zebra five times on master and the intended tab zebra five times after the patch. Normal selection with Enter activated zebra.

Review scope

The changed paths are iframe close, focus and completion refresh. The patch has no persistent state and can be reverted independently. Verification used headless Firefox with disposable profiles and mostly discarded tabs. Human verification is pending.

Codex assisted with implementation and automated verification. No human keyboard test has been recorded. The local checks used Firefox 160.0.1, TypeScript, and the default Jest configuration (19 suites, 818 unit tests passed on this branch). The Firefox regressions were exercised separately through WebDriver. Upstream master at a296f0728d10f9a67a38555f38b85a1d4b726021 passed its push lint and e2e workflows.

This branch has not been deployed

No deployments
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.

1 participant

0