diff --git a/apps/browser/src/autofill/services/autofill-overlay-content.service.ts b/apps/browser/src/autofill/services/autofill-overlay-content.service.ts index 09cd3649962..5551057f62e 100644 --- a/apps/browser/src/autofill/services/autofill-overlay-content.service.ts +++ b/apps/browser/src/autofill/services/autofill-overlay-content.service.ts @@ -3,6 +3,7 @@ import "lit/polyfill-support.js"; import { FocusableElement, tabbable } from "tabbable"; import { + AutofillTargetingRuleTypes, AUTOFILL_OVERLAY_HANDLE_REPOSITION, AUTOFILL_OVERLAY_HANDLE_SCROLL, AUTOFILL_TRIGGER_FORM_FIELD_SUBMIT, @@ -1177,6 +1178,11 @@ export class AutofillOverlayContentService implements AutofillOverlayContentServ // which are distinct from the heuristic AutofillFieldQualifierType values. const qualifier = autofillFieldData.fieldQualifier as AutofillTargetingRuleType; + if (qualifier === AutofillTargetingRuleTypes.newPassword) { + autofillFieldData.inlineMenuFillType = InlineMenuFillTypes.PasswordGeneration; + return; + } + if (loginQualifiers.includes(qualifier)) { autofillFieldData.inlineMenuFillType = CipherType.Login; return; diff --git a/apps/browser/src/autofill/services/autofill.service.ts b/apps/browser/src/autofill/services/autofill.service.ts index 7108f8de862..49b2ef3cff7 100644 --- a/apps/browser/src/autofill/services/autofill.service.ts +++ b/apps/browser/src/autofill/services/autofill.service.ts @@ -921,12 +921,12 @@ export default class AutofillService implements AutofillServiceInterface { if (fieldType === AutofillTargetingRuleTypes.username) { return cipher.login?.username ?? null; } - if ( - fieldType === AutofillTargetingRuleTypes.password || - fieldType === AutofillTargetingRuleTypes.newPassword - ) { + if (fieldType === AutofillTargetingRuleTypes.password) { return cipher.login?.password ?? null; } + if (fieldType === AutofillTargetingRuleTypes.newPassword) { + return null; + } // Card fields if (fieldType === AutofillTargetingRuleTypes.cardholderName) {