Skip to content

Commit

Permalink
adress feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-livefront committed Dec 10, 2024
1 parent 97f9692 commit 9c2c03e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,13 @@ export class InlineMenuFieldQualificationService
return this.isFieldForLoginFormFallback(field);
}

const isTotpField = this.isTotpField(field);
/**
* Autofill does not fill password type totp input fields
*/
if (this.inlineMenuTotpFeatureFlag) {
if (isTotpField) {
const isTotpField = this.isTotpField(field);
const passwordType = field.type === "password";
if (isTotpField && !passwordType) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/browser/src/background/runtime.background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class RuntimeBackground {
"biometricUnlockAvailable",
"getUseTreeWalkerApiForPageDetailsCollectionFeatureFlag",
"getInlineMenuFieldQualificationFeatureFlag",
"getInlineMenuTotpFlag",
"getInlineMenuTotpFeatureFlag",
];

if (messagesWithResponse.includes(msg.command)) {
Expand Down

0 comments on commit 9c2c03e

Please sign in to comment.