Merge branch 'autofill/pm-8833-implement-on-page-autofill-menu-for-password-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit

This commit is contained in:
Cesar Gonzalez 2024-10-09 12:27:57 -05:00
commit c3df2d8f57
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
1 changed files with 5 additions and 0 deletions

View File

@ -424,9 +424,14 @@ export class OverlayBackground implements OverlayBackgroundInterface {
CipherType.Identity,
])
).sort((a, b) => this.cipherService.sortCiphersByLastUsedThenName(a, b));
if (!this.cardAndIdentityCiphers) {
return cipherViews;
}
for (let cipherIndex = 0; cipherIndex < cipherViews.length; cipherIndex++) {
const cipherView = cipherViews[cipherIndex];
if (
this.cardAndIdentityCiphers &&
!this.cardAndIdentityCiphers.has(cipherView) &&
[CipherType.Card, CipherType.Identity].includes(cipherView.type)
) {