Repository navigation
Float Bitwarden extension popouts in all Chromium browsers - #8236
harrison-wallace wants to merge 1 commit into
Conversation
The popout rule matched only "chrome-<extid>-Default", so on Brave, Edge, Vivaldi and other Chromium browsers the window never got the floating-window tag and was tiled instead. Passkey prompts ended up as small as 148x155 -- too small to reach the confirm button, so the WebAuthn ceremony never completed and the site retried, spawning a fresh popout each time. Match the extension ID alone, which covers every Chromium browser and also catches the "__popup_index.html" class variant. Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Broadens Bitwarden popout matching to all Chromium-based browsers so passkey and vault dialogs float at a usable size.
Changes:
- Matches windows using Bitwarden’s extension ID.
- Documents why browser-specific prefixes are insufficient.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Reviewed by Claude Opus 5, with an independent second opinion from Codex at xhigh reasoning. Checked on a disposable Omarchy VM running Hyprland 0.56.2 — the same version as your report — with the compositor serving this branch. The class match works, and it covers slightly more than the description claims. I reproduced the window classes with Row 2 is the Two findings. 1. Keeping 2. "All Chromium browsers" is not quite true: the pattern carries only the Chrome Web Store ID. Codex raised this and I verified the IDs against Bitwarden's own store listings. Bitwarden's Edge Add-ons build is Tests. Nothing pushed. Both findings are calls for the maintainer rather than contained fixes, and this file has three other open pull requests against it: #8341, #7628 and #6449. #8341 in particular makes the identical regex change and additionally drops the tag in favour of Where Codex agreed with conclusions already reached here — the 875x600 expansion, the absence of over-match — its independence is not currently guaranteed, so read that as agreement rather than confirmation. The Edge and Opera extension IDs were new to this review and were verified separately. Waiting on the maintainer. |
|
Automated duplication check: this pull request looks similar to #8341, which covers the same Bitwarden browser match. I keep that one open and close this one to consolidate review. If you feel this is the wrong decision, please open the PR again with a note on the difference. |
What happened
On Brave, the Bitwarden extension's passkey popout is tiled rather than floated, and ends up far too small to use — as small as 148x155 with several open at once. The confirm button is unreachable, so the WebAuthn ceremony never completes, the site retries, and each retry spawns another popout that shrinks the rest further.
Captured from the Hyprland event socket during one failed login — six popouts in a single second:
And the resulting windows:
Cause
default/hypr/apps/bitwarden.luamatched the popout aschrome-<extid>-Default. Chromium names these windows<browser>-<extid>-Default, so on Brave the class isbrave-<extid>-Default, the rule misses, and the window never gets thefloating-windowtag. It works on Chrome and silently fails on every other Chromium browser.Expected
The popout floats, as it already does on Chrome.
Fix
Match on the extension ID alone, which covers every Chromium browser. It also catches the
__popup_index.htmlclass variant that Chromium uses for some popouts, which the exact-class rule missed even on Chrome.Steps to reproduce
hyprctl clientsshowsfloating: FalseSystem
Verification
With the fix, the popout opens
floating = Trueat 875x600../test/all— 201 files pass. Four fail (config,snapper,theme-install-guards,unowned-system-paths), but they fail identically on a cleanquattrocheckout on this machine, so they look environment-dependent and unrelated to this change.Possibly related, not addressed here
default/hypr/apps/1password.luamatches only^(1[p|P]assword)$, which is the desktop app class — so 1Password's browser-extension popouts may have the same gap. I have not reproduced it and did not want to widen this commit, so I have left it alone; worth a look by someone who uses it.