Skip to content

Float Bitwarden passkey prompts across Chromium profiles - #15790

Closed
claytonfaria wants to merge 2 commits into
omacom:quattrofrom
claytonfaria:fix/bitwarden-chromium-passkey-prompts
Closed

claytonfaria wants to merge 2 commits into
omacom:quattrofrom
claytonfaria:fix/bitwarden-chromium-passkey-prompts

Conversation

@claytonfaria

@claytonfaria claytonfaria commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Bitwarden's passkey selector opened tiled in Chromium on Omarchy with Hyprland 0.56.2. Adding floating and centering rules locally fixed the selector, confirmed by the affected user.

The extension rule currently names only chrome-nngceckbapebfimnlniiiahkandclblb-Default. Match other Chromium profiles as well, and add a narrowly titled fallback for prompts exposed under Chromium's normal class. The fallback in browser.lua removes the Chromium tiling tag after browser tagging, so the generic browser rule cannot retile it. Float and center extension prompts directly so they retain their requested size rather than inheriting the generic 875×600 floating-window size. Screen-share protection remains enabled.

Related work:

Validation:

  • Affected user confirmed the equivalent local float/center rules fix the passkey selector. The popup was no longer open when metadata was inspected, so which of the two matchers fixed that instance has not been isolated. No before/after capture is available.
  • ./test/shell.d/hyprland-bitwarden-prompts-test.sh passes: covers Default/Profile 1/Profile 2, Chromium title variants, and negative controls for ordinary browser windows and unrelated apps/extensions. It also checks centering, screen-share protection, and absence of forced sizing.
  • bash test/shell.d/hyprland-default-config-test.sh and git diff --check pass.
  • hyprctl reload and hyprctl configerrors report no errors with the equivalent local rules.
  • Full ./test/all completed: the upstream run reported 20/451 shell test files failing; the candidate run reported 32/452 failing. Both CLI suites passed. The runs overlapped on this desktop, so timing and shared-state failures are not an isolated regression comparison. Environment-dependent checks were skipped. The focused Bitwarden/config checks pass, but the full suite is not green and the additional failures have not been resolved.

Review follow-up (7a67d5b): the regression test now loads both modules in production order and checks tag and float/tile interactions. Removing the new tag exception makes the test fail. Live Hyprland probes reproduced the original tiling conflict and confirmed the fix floats the Bitwarden probe while an ordinary Chromium control stays tiled. Temporary rules were removed and config errors are empty. Greptile reviewed the update with 5/5 confidence and no new actionable issues. The follow-up full candidate suite reported 16/323 shell test files failing; the sequential baseline run was stopped at the author's request after the clean review, so no clean baseline comparison is claimed.

@greptile-apps

greptile-apps Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge, with no new actionable issues found.

Summary

Makes Chromium extension prompts float and center without forcing their size.

  • Chromium's Bitwarden prompts float centered without forced sizing.

Reviews (2) · Last reviewed commit: "Exclude Bitwarden prompts from Chromium ..." · Reviewed by Greptile

@omarchybot omarchybot added the bug Something isn't working label Oct 18, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for the detailed write-up. This fix overlaps two older open pull requests, #8341 and #14514. Both already match the extension window for every profile, so this one is waiting on the maintainer rather than going ahead on its own.

What was checked, by reading only (nothing was run on a worker, because a fix that will not be the one merged isn't worth a test VM): the diff at 7a67d5b against quattro's current bitwarden.lua, browser.lua, system.lua and helpers.lua, and the diffs of #8341 and #14514.

  • The extension rule is narrower than the existing fixes. ^chrome-nngceckbapebfimnlniiiahkandclblb-.*$ covers other Chromium profiles, but not Brave's brave-nngceckbapebfimnlniiiahkandclblb__popup_index.html-Default from Fix Bitwarden extension popout rendering #8341, or any class where the popup path follows the extension id. Let the Bitwarden extension popout keep the size it asks for #14514 matches .*nngceckbapebfimnlniiiahkandclblb.*, with the same float/center/no_screen_share you chose, so it already covers this PR's profile case.
  • The chromium + title fallback also catches ordinary browser windows. Chromium titles a window <page title> - Chromium, so a normal browser window showing a tab titled exactly "Bitwarden" matches ^Bitwarden( - Chromium)?$. It then loses the chromium-based-browser tag and is floated and hidden from screen sharing. The negative cases in hyprland-bitwarden-prompts-test.sh don't cover that. The description also says it was never established whether a real passkey prompt shows up under the chromium class, so this rule rests on a guess.
  • The tag exception isn't needed for the extension class. Hyprland window-rule regexes are full-match, so the unanchored browser pattern in browser.lua never tags chrome-nngceck…-Profile_1 as a browser in the first place.

Second opinion: Codex Medium was given all three pull requests without my conclusion and also chose #14514. Its reasons were the same narrower match and the title collision, plus a 480-pixel width cap in #8341 that cuts off Bitwarden's 600-pixel setting. Its independence isn't guaranteed.

If you can capture hyprctl clients while the passkey selector is open and it really does show class chromium, please post it here: that would be a separate rule worth adding on top of whichever fix lands. Choosing between the competing fixes is up to the maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants