[PM-8833] Reworking how we handle adding a password to history

This commit is contained in:
Cesar Gonzalez 2024-09-27 14:49:36 -05:00
parent ab681e79eb
commit ef462a1b51
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
1 changed files with 1 additions and 2 deletions

View File

@ -1512,6 +1512,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
*/
private async generatePassword(): Promise<void> {
this.generatedPassword = await this.generatePasswordCallback();
await this.addPasswordCallback(this.generatedPassword);
}
/**
@ -1537,8 +1538,6 @@ export class OverlayBackground implements OverlayBackgroundInterface {
return;
}
await this.addPasswordCallback(this.generatedPassword);
const pageDetails = this.pageDetailsForTab[port.sender.tab.id];
if (!pageDetails) {
return;