bitwarden / bitwarden/clients

firefox extension pop-ups crowd "Recently closed windows" section unnecessarily

Open
#17,535 2 comments 0 reactions 0 assignees View on GitHub
browser bug
Dominant language
TypeScript
Stars
13.8k
Forks
2k
Avg merge
3d 6h
Merged PRs (30d)
340

Description

### Steps To Reproduce

1. Open a website with a saved Bitwarden login that requires user input to auto-fill (i.e., requiring a password, or the vault is locked), or one that uses a passkey.
2. Attempt to autofill, input the password, and log in to the website.
3. Go to the hamburger buttom -> History -> Recently closed windows
4. See that Bitwarden has deleted the fifth entry in the section and replaced it.

### Expected Result

I expected the extension to not interfere with any normal functioning of the browser. This is easily fixable, the `WebExtension` API provides a utility for exactly this purpose, [`browser.sessions.forgetClosedWindow`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/sessions/forgetClosedWindow).

### Actual Result

Oftentimes, I close a window to save memory, forget about it, log into a few websites, and end up losing the window.

### Screenshots or Videos

_No response_

### Additional Context

_No response_

### Operating System

macOS

### Operating System Version

26.1

### Web Browser

Firefox

### Browser Version

145.0

### Environment Versions

Version: 2025.10.0
SDK: 'main (d0262d3)'
Server version: 2025.11.0

### Issue Tracking Info

- [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Contributor guide

Open the contributing guide

Research direction

Start by reading the WebExtension sessions.forgetClosedWindow API linked in the issue, then search the browser extension TypeScript code for session or closed-window handling. Reproduce the Firefox steps and verify that autofill and passkey use no longer remove an unrelated entry from Recently closed windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.