Skip to content

Float Bitwarden extension popouts in all Chromium browsers - #8236

Closed
harrison-wallace wants to merge 1 commit into
omacom:quattrofrom
harrison-wallace:fix-bitwarden-popout-chromium-browsers
Closed

harrison-wallace wants to merge 1 commit into
omacom:quattrofrom
harrison-wallace:fix-bitwarden-popout-chromium-browsers

Conversation

@harrison-wallace

Copy link
Copy Markdown

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:

17:10:01 openwindow>>...,brave-nngceckbapebfimnlniiiahkandclblb-Default,_crx_nngceck...
17:10:01 openwindow>>...,brave-nngceckbapebfimnlniiiahkandclblb-Default,_crx_nngceck...
17:10:01 openwindow>>...,brave-nngceckbapebfimnlniiiahkandclblb-Default,_crx_nngceck...
17:10:01 openwindow>>...,brave-nngceckbapebfimnlniiiahkandclblb-Default,_crx_nngceck...
17:10:01 openwindow>>...,brave-nngceckbapebfimnlniiiahkandclblb-Default,_crx_nngceck...
17:10:01 openwindow>>...,brave-nngceckbapebfimnlniiiahkandclblb-Default,_crx_nngceck...

And the resulting windows:

class=brave-nngceckbapebfimnlniiiahkandclblb-Default floating=False size=[148, 155]
class=brave-nngceckbapebfimnlniiiahkandclblb-Default floating=False size=[148, 159]
class=brave-nngceckbapebfimnlniiiahkandclblb-Default floating=False size=[144, 328]
class=brave-nngceckbapebfimnlniiiahkandclblb-Default floating=False size=[306, 328]
class=brave-nngceckbapebfimnlniiiahkandclblb-Default floating=False size=[301, 670]

Cause

default/hypr/apps/bitwarden.lua matched the popout as chrome-<extid>-Default. Chromium names these windows <browser>-<extid>-Default, so on Brave the class is brave-<extid>-Default, the rule misses, and the window never gets the floating-window tag. 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.html class variant that Chromium uses for some popouts, which the exact-class rule missed even on Chrome.

Steps to reproduce

  1. Brave with the Bitwarden extension, on Hyprland
  2. Sign in to any site with a Bitwarden-stored passkey
  3. The popout is tiled and too small to interact with; hyprctl clients shows floating: False

System

  • Omarchy 4.0.1-1
  • Hyprland 0.56.2
  • Brave 1:1.93.138-1, Bitwarden extension 2026.8.0
  • ThinkPad X1 Yoga Gen 4, i5-8265U / UHD 620

Verification

With the fix, the popout opens floating = True at 875x600.

./test/all — 201 files pass. Four fail (config, snapper, theme-install-guards, unowned-system-paths), but they fail identically on a clean quattro checkout on this machine, so they look environment-dependent and unrelated to this change.

Possibly related, not addressed here

default/hypr/apps/1password.lua matches 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.

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]>
Copilot AI balanced review requested due to automatic review settings August 25, 2026 16:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@omarchybot

Copy link
Copy Markdown
Collaborator

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 foot --app-id=... on a worker running this branch and read hyprctl clients:

class=brave-nngceckbapebfimnlniiiahkandclblb-Default                    floating=1  size=875,600  tags=default-opacity*, floating-window*
class=brave-nngceckbapebfimnlniiiahkandclblb__popup_index.html-Default  floating=1  size=875,600  tags=default-opacity*, floating-window*
class=msedge-jbkfoedolllekgbhcbcoahefnbanhhlh-Default                   floating=0  size=621,750  tags=default-opacity*
class=plain-control-window                                              floating=0  size=621,750  tags=default-opacity*

Row 2 is the __popup_index.html variant, which the old exact-class rule missed even on Chrome, so this picks that up as well. Hyprland matches window-rule classes with RE2::FullMatch (src/desktop/rule/matchEngine/RegexMatchEngine.cpp), so the leading and trailing .* are load-bearing rather than decorative, and there is no over-match to worry about: default/hypr/apps/browser.lua:2 does not also match these longer classes, so the tile = true from browser.lua:4 never lands on them. The tags on rows 1 and 2 confirm that.

Two findings.

1. Keeping tag = "+floating-window" leaves the popout at a forced 875x600, which is what open issue #6075 is about. The tag expands in default/hypr/apps/system.lua:2-4 to float = true, center = true and size = { 875, 600 } — an exact size, not a maximum — and that is what the probe measured. #6075 reports 875x600 as wrong for this popup, which wants 480x650, and visibly broken since Bitwarden 2026.5.1; the Edge reporter in #7569 independently found that forcing 480x630 was what restored usable geometry. So this changes which browsers match but keeps the geometry that #6075 is about, and extends it to Brave, Vivaldi and the rest, who previously did not match at all. Still a clear improvement over a 148x155 tile — but it leaves #6075 open rather than closing it, which is worth being explicit about given the PR body's "opens floating = True at 875x600" reads as the desired end state.

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 jbkfoedolllekgbhcbcoahefnbanhhlh and its Opera build is ccnckbpmaceehanjmeomladnmlffdjgn. Brave and Vivaldi do install the Chrome-ID build, so they are genuinely covered; Edge and Opera users who installed from their own browser's store are not, and Edge Add-ons is the default path in Edge. Row 3 of the probe is that case, still tiled. The comment on lines 3-6 names Edge specifically, so it is wrong for that install path. Smaller point on the same comment: it gives the class shape as <browser>-<extid>-Default, which is not the shape of the __popup_index.html variant the regex correctly handles.

Tests. ./test/shell.d/hyprland-default-config-test.sh (14 passed) and ./test/shell.d/hyprland-window-test.sh (2 passed), both green on the worker. The branch adds no test of its own. The repo's convention here is test/shell.d/*-test.sh sourcing base-test.sh, and a static assertion on the emitted rule table is easy in this case — test/shell.d/hyprland-default-config-test.sh:63-92 already stubs hl.window_rule the way such a test would need to.

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 float = true, max_size = { 480, 650 }, no_blur = true, plus a test — so it addresses finding 1 while this one does not, and it carries the same finding 2. Which of these lands is the maintainer's decision.

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.

@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

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.

@bjarneo bjarneo closed this Sep 21, 2026
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.

4 participants