Repository navigation
Fix desktop browser address bar focus transitions - #4978
Merged
ymichael merged 2 commits intoOct 6, 2026
Merged
Conversation
ymichael
deleted the
bb/fix-url-bar-focus-and-typing-issues-thr_9ju73aqhs9
branch
October 6, 2026 17:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Opening Browser from a regular thread's New tab initially focused the URL bar, but saving the new tab's desktop ownership triggered a window-identity check that unmounted and recreated the toolbar after consuming its focus request. This lost focus and any text already typed. Plugin panels had a separate gap: they never requested address focus. Submitting a URL also cleared the editing state without moving keyboard focus out of the input.
What changed
Resolve the desktop window identity before mounting a new browser toolbar, so saving ownership preserves the focused input and its draft. Plugin panels now send and consume address-focus requests for empty browser tabs. Submitting a valid address blurs the input and focuses the native page once its view is visible, with guards for hidden or inactive panes, load errors, and open dialogs.
How you verified
google.co; completed the URL and navigated. Native page evaluation confirmed focus after submission.pnpm exec turbo run test --filter=@bb/app -- src/components/secondary-panel/BrowserTabDeck.browser-view-ordering.test.tsx src/components/secondary-panel/BrowserTabContent.chrome.test.tsx src/components/plugin/PluginPanelRightPanelHost.test.tsx— 48 tests passed.pnpm exec turbo run lint typecheck --filter=@bb/appandgit diff --checkpassed. The full app suite passed before the ownership follow-up: 5,366 tests passed, 5 skipped.