From 5bcb9aeb68922194d107e1cf8a646be37ac55018 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Fri, 7 Jun 2024 12:04:05 -0500 Subject: [PATCH] [PM-5189] Refactoring implementation --- apps/browser/src/autofill/content/autofill-init.spec.ts | 2 +- apps/browser/src/autofill/content/autofill-init.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/browser/src/autofill/content/autofill-init.spec.ts b/apps/browser/src/autofill/content/autofill-init.spec.ts index 11b58e6e74..570f5f0937 100644 --- a/apps/browser/src/autofill/content/autofill-init.spec.ts +++ b/apps/browser/src/autofill/content/autofill-init.spec.ts @@ -271,7 +271,7 @@ describe("AutofillInit", () => { it("removes the overlay when filling the form", async () => { const blurAndRemoveOverlaySpy = jest.spyOn( autofillInit as any, - "blurAndRemoveInlineMenu", + "blurFocusedFieldAndRemoveInlineMenu", ); sendMockExtensionMessage({ command: "fillForm", diff --git a/apps/browser/src/autofill/content/autofill-init.ts b/apps/browser/src/autofill/content/autofill-init.ts index 993b4b207a..1382676f1a 100644 --- a/apps/browser/src/autofill/content/autofill-init.ts +++ b/apps/browser/src/autofill/content/autofill-init.ts @@ -123,7 +123,7 @@ class AutofillInit implements AutofillInitInterface { return; } - this.blurAndRemoveInlineMenu(); + this.blurFocusedFieldAndRemoveInlineMenu(); await this.sendExtensionMessage("updateIsFieldCurrentlyFilling", { isFieldCurrentlyFilling: true, }); @@ -143,7 +143,7 @@ class AutofillInit implements AutofillInitInterface { * in cases where the background unlock or vault item reprompt popout * is opened. */ - private blurAndRemoveInlineMenu() { + private blurFocusedFieldAndRemoveInlineMenu() { this.autofillOverlayContentService?.blurMostRecentlyFocusedField(true); }