Repository navigation
Fix Bitwarden extension popout rendering - #8341
TyRichards wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Updates Bitwarden Hyprland rules to correctly float Chromium extension popouts at supported dimensions.
Changes:
- Matches Bitwarden popouts by extension ID.
- Applies direct floating, size, blur, and sharing rules.
- Adds regression coverage.
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.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
default/hypr/apps/bitwarden.lua |
Corrects extension popout matching and presentation. |
test/shell.d/hyprland-bitwarden-test.sh |
Tests desktop and extension rules. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| require_command lua | ||
|
|
||
| OMARCHY_PATH="$ROOT" lua <<'LUA' |
Lua 5.5 reports an error in a chunk read off bare stdin and then exits 0 anyway, so `lua <<'LUA'` swallowed every assertion in the heredoc: mutating `max_size` to `{ 9999, 9999 }` still printed `ok -` and left the file exiting 0. Passing `-` names stdin as the script and restores the exit status. `set -euo pipefail` is what then carries that status out of the file, since the runner only reads the exit code and `pass` would otherwise run regardless.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Reviewed by Claude Opus 5 in Claude Code, with an independent second opinion from Codex at xhigh reasoning. Everything below was checked against the source, and the window rule itself was proved on a disposable VM running a real Hyprland 0.56.2 session rather than read. Pushed one fix to this branch:
The fix passes The rule itself checks out. The widened match covers the browser prefix, a non-default profile suffix and the Dropping One gap, not a blocker and not new. The regex carries only the Chrome Web Store ID. Bitwarden's Microsoft Edge Add-ons build has its own ID, What is waiting on the maintainer. This is one of four open PRs editing On the second opinion: Codex at xhigh agreed on the match semantics, the |
|
Re-checked at The bug reproduces, and this fixes it. Windows opened under each class, first with Restoring Tests, on the same VM. What changed since the last review. #6449, #7628 and #8236 are now closed, so this is the only open fix for #6075 and there is no longer a choice between them. The Edge Add-ons ID ( No second opinion this run. The reviewer answered a ping, but omabot's daily review budget was spent, so nothing checked this round's work. It is labelled |
The rule matched only chrome-<id>-Default, so the popout in Brave (brave-<id>...), in a second Chromium profile (-Profile_1) or with the popup path appended (__popup_index.html) got none of it: no float and no screen-share protection, and Brave tiles it into a wide, half-drawn window. Matching on the extension ID alone covers them, as #8341 does. The test is adapted from #8341's, keeping its float and screen-share checks and asserting that no size or size cap is set. Co-Authored-By: Ty Richards <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Let the Bitwarden extension popout keep the size it asks for The extension window was tagged floating-window, which forces every window carrying it to 875x600. Bitwarden opens its popout at the width chosen in its settings (380, 480 or 600) and a height of 630, so the forced size left it the wrong shape. Float and centre it directly instead, keeping no_screen_share. Co-Authored-By: Codex Medium <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Match the Bitwarden extension popout in every Chromium browser The rule matched only chrome-<id>-Default, so the popout in Brave (brave-<id>...), in a second Chromium profile (-Profile_1) or with the popup path appended (__popup_index.html) got none of it: no float and no screen-share protection, and Brave tiles it into a wide, half-drawn window. Matching on the extension ID alone covers them, as #8341 does. The test is adapted from #8341's, keeping its float and screen-share checks and asserting that no size or size cap is set. Co-Authored-By: Ty Richards <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Drop the Bitwarden rule test The test restated the two declarative rules in bitwarden.lua and counted them, so it guarded nothing a reader of the file cannot see and broke whenever a rule was added, which AGENTS.md asks tests not to do. The broader `.*nngceckbapebfimnlniiiahkandclblb.*` match stays: the popout's class is `brave-...` in Brave and ends in `-Profile_1` in a second Chromium profile, and on quattro those popouts tile because the old exact class never matches them. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Omarchybot <[email protected]> Co-authored-by: Codex Medium <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ty Richards <[email protected]>
|
#14514 has been merged into Already covered by the merge: matching on the extension ID ( Not carried over:
Still worth having:
I took the |
…14514) * Let the Bitwarden extension popout keep the size it asks for The extension window was tagged floating-window, which forces every window carrying it to 875x600. Bitwarden opens its popout at the width chosen in its settings (380, 480 or 600) and a height of 630, so the forced size left it the wrong shape. Float and centre it directly instead, keeping no_screen_share. Co-Authored-By: Codex Medium <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Match the Bitwarden extension popout in every Chromium browser The rule matched only chrome-<id>-Default, so the popout in Brave (brave-<id>...), in a second Chromium profile (-Profile_1) or with the popup path appended (__popup_index.html) got none of it: no float and no screen-share protection, and Brave tiles it into a wide, half-drawn window. Matching on the extension ID alone covers them, as omacom#8341 does. The test is adapted from omacom#8341's, keeping its float and screen-share checks and asserting that no size or size cap is set. Co-Authored-By: Ty Richards <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Drop the Bitwarden rule test The test restated the two declarative rules in bitwarden.lua and counted them, so it guarded nothing a reader of the file cannot see and broke whenever a rule was added, which AGENTS.md asks tests not to do. The broader `.*nngceckbapebfimnlniiiahkandclblb.*` match stays: the popout's class is `brave-...` in Brave and ends in `-Profile_1` in a second Chromium profile, and on quattro those popouts tile because the old exact class never matches them. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Omarchybot <[email protected]> Co-authored-by: Codex Medium <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ty Richards <[email protected]> (cherry picked from commit ab85004)
Summary
floating-windowtag480x650size and disable blur/screen sharingWhy
Brave currently exposes the Bitwarden popup as:
The existing
chrome-nngceckbapebfimnlniiiahkandclblb-Defaultrule does not match that class, so Hyprland tiles the narrow popup surface into a wide window. This produces the apparent half-rendered/transparent popup.Applying Omarchy's generic
floating-windowtag is not sufficient here: its875x600size is also incompatible with Bitwarden's current popup layout. This rule therefore floats Bitwarden directly and uses a maximum size of480x650.This combines the browser-class coverage from #8236 with the Bitwarden-specific sizing approach from #6449.
Fixes #6075.
Verification
Live tested with Hyprland 0.56.2, Brave, and Bitwarden extension 2026.7.0:
1386x858480x650, with screen-share protection appliedTests:
The full
./test/allsuite was also run. Its five failures were reproduced unchanged on a detached, unmodifiedupstream/quattrocheckout (one local bar-geometry check, three checks requiring anomarchy-pkgscheckout, and one network-dependent theme URL check).