[PM-8833] Refactoring implementation
This commit is contained in:
parent
7efae38745
commit
684f7717eb
|
@ -702,11 +702,15 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
|||
? focusedFieldData.inlineMenuFillType
|
||||
: this.focusedFieldData?.inlineMenuFillType;
|
||||
|
||||
return (
|
||||
(focusedFieldFillType === InlineMenuFillType.CurrentPasswordUpdate &&
|
||||
fillType === CipherType.Login) ||
|
||||
focusedFieldFillType === fillType
|
||||
);
|
||||
// When updating the current password for a field, it should fill with a login cipher
|
||||
if (
|
||||
focusedFieldFillType === InlineMenuFillType.CurrentPasswordUpdate &&
|
||||
fillType === CipherType.Login
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return focusedFieldFillType === fillType;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -187,7 +187,6 @@ export class AutofillOverlayContentService implements AutofillOverlayContentServ
|
|||
autofillFieldData: AutofillField,
|
||||
pageDetails: AutofillPageDetails,
|
||||
) {
|
||||
// TODO: Might want to look into handling this sandbox iframe check a bit more effectively.
|
||||
if (
|
||||
currentlyInSandboxedIframe() ||
|
||||
this.formFieldElements.has(formFieldElement) ||
|
||||
|
|
Loading…
Reference in New Issue