Bug 1996443 - Focus the browser window when opening about:logins via LoginHelper.openPasswordManager. r?mtigley

Differential Revision: https://phabricator.services.mozilla.com/D332854
This commit is contained in:
dualfroz committed 2026-10-12 14:29:09 +02:00
1 parent 9ba8a90bce
commit edfad4e281
2 files changed
+45 -1

No files matched your search

@@ -1231,7 +1231,8 @@ export const LoginHelper = {
},
/**
* Open the password manager window.
* Open the password manager in a new tab and bring the browser window
* containing it to the foreground.
*
* @param {Window} window
* the window from where we want to open the dialog
@@ -1272,6 +1273,10 @@ export const LoginHelper = {
});
tab.setAttribute("preselect-login", preselectedLogin);
// The caller may live in a different window (e.g. Page Info), so bring
// the browser window showing about:logins to the foreground.
browser.documentGlobal.focus();
},
/**