---
title: "Firefox: focusing the password manager window | VulCode"
description: "A Firefox fix: the password manager opened from the Page Info window now comes to the foreground. A change in LoginHelper with a mochitest that guards it."
url: "https://vulcode.com/en/opensource/contributions/firefox"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

mozilla-firefox/firefox

# Firefox

Mozilla's web browser, developed as open source software. Fixes go through Bugzilla, review in Phabricator and automated tests before they reach the main branch.

[See the repository](https://github.com/mozilla-firefox/firefox) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: JavaScript
- **Merged changes**: 1
- **Project site**: [firefox.com](https://www.firefox.com)

## What we changed

The saved passwords button in the Page Info window opens the password manager in a browser window that comes straight to the foreground. We added a browser test with the fix.

### What this work shows

- Firefox front-end code in JavaScript

- Browser mochitests

- Window focus and stacking

- The Bugzilla and Phabricator process

What was broken

### The password manager opened in the background

After clicking the saved passwords button in the Page Info window, Firefox opened about:logins in a new tab, but the browser window stayed behind the Page Info window. The bug was reproduced on Windows, macOS and Ubuntu.

How we fixed it

### The window with about:logins comes to the front

LoginHelper.openPasswordManager now focuses the browser window holding about:logins after opening the tab. The Page Info window stays open, just like with the certificate and help buttons. A new test checks the selected tab and the active window.

[#1996443](https://bugzilla.mozilla.org/show_bug.cgi?id=1996443)

## Merged change 1

- [#1996443 Bug 1996443 - Focus the browser window when opening about:logins via LoginHelper.openPasswordManager Merged 21 October 2026](https://bugzilla.mozilla.org/show_bug.cgi?id=1996443)

## What it taught us

The fix passed review by the team responsible for passwords, and Mozilla's QA verified it on Windows, macOS and Fedora. In a codebase this large what counts is a small, precise change and a test that guards the behaviour.

[More about this technology: TypeScript, React and Node](https://vulcode.com/en/technologies/typescript-react-and-node)

## Other projects we write code for

- [**Material UI** JavaScript · 99,391 stars A React component library that implements Google's Material Design: ready-made text fields, selects, buttons and other interface elements.](https://vulcode.com/en/opensource/contributions/material-ui)

- [**Grafana** TypeScript · 78,050 stars An open observability and data visualisation platform that shows metrics, logs and traces from Prometheus, Loki, Elasticsearch, PostgreSQL and many other sources on dashboards.](https://vulcode.com/en/opensource/contributions/grafana)

- [**Marked** TypeScript · 37,323 stars A fast Markdown parser and compiler to HTML, written in TypeScript and following CommonMark and GitHub Flavored Markdown.](https://vulcode.com/en/opensource/contributions/marked)

- [**Autoprefixer** JavaScript · 22,197 stars A PostCSS plugin that adds browser prefixes to CSS based on Can I Use data, including the -ms-grid syntax for CSS Grid layouts.](https://vulcode.com/en/opensource/contributions/autoprefixer)

- [**Lichess** TypeScript · 19,013 stars The lichess.org chess server: free, ad-free and open source, focused on real-time play. The back end is written in Scala, the interface in TypeScript.](https://vulcode.com/en/opensource/contributions/lichess)

- [**compromise** JavaScript · 12,176 stars A natural language processing library in JavaScript: it splits text into sentences and words, tags parts of speech, conjugates verbs and inflects nouns, and reads dates through a plugin. It runs in the browser and in Node.js.](https://vulcode.com/en/opensource/contributions/compromise)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
