1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

[PM-18918] Navigate directly to at risk passwords page (#14044)

* refactor `openPopup` vault message to `OpenAtRiskPasswords`

* navigate directly to the at risk passwords page

* ensure the at-risk-passwords page navigates back to the vault

* reset popup index page

* avoid setting `hasNavigated` for the initial route

* Revert "avoid setting `hasNavigated` for the initial route"

This reverts commit 68bd9268ae.

* always reset popup page to the index

---------

Co-authored-by: Shane Melton <smelton@bitwarden.com>
This commit is contained in:
Nick Krantz
2025-04-04 10:42:07 -05:00
committed by GitHub
parent 263598d9e0
commit 576e438dbd
8 changed files with 69 additions and 25 deletions

View File

@@ -68,7 +68,9 @@ describe("BrowserExtensionPromptService", () => {
);
expect(window.postMessage).toHaveBeenCalledTimes(2);
expect(window.postMessage).toHaveBeenCalledWith({ command: VaultMessages.OpenPopup });
expect(window.postMessage).toHaveBeenCalledWith({
command: VaultMessages.OpenAtRiskPasswords,
});
});
});

View File

@@ -55,7 +55,7 @@ export class BrowserExtensionPromptService {
/** Post a message to the extension to open */
openExtension(setManualErrorTimeout = false) {
window.postMessage({ command: VaultMessages.OpenPopup });
window.postMessage({ command: VaultMessages.OpenAtRiskPasswords });
// Optionally, configure timeout to show the manual open error state if
// the extension does not open within one second.