diff --git a/apps/browser/src/autofill/background/overlay.background.spec.ts b/apps/browser/src/autofill/background/overlay.background.spec.ts index b1f2cbc3011..3e7cb693862 100644 --- a/apps/browser/src/autofill/background/overlay.background.spec.ts +++ b/apps/browser/src/autofill/background/overlay.background.spec.ts @@ -988,7 +988,9 @@ describe("OverlayBackground", () => { sendMockExtensionMessage({ command: "focusAutofillInlineMenuList" }); - expect(listPortSpy.postMessage).toHaveBeenCalledWith({ command: "focusInlineMenuList" }); + expect(listPortSpy.postMessage).toHaveBeenCalledWith({ + command: "focusAutofillInlineMenuList", + }); }); }); diff --git a/apps/browser/src/autofill/background/overlay.background.ts b/apps/browser/src/autofill/background/overlay.background.ts index 5f39c1df049..6f51329c5be 100644 --- a/apps/browser/src/autofill/background/overlay.background.ts +++ b/apps/browser/src/autofill/background/overlay.background.ts @@ -821,7 +821,7 @@ export class OverlayBackground implements OverlayBackgroundInterface { * Facilitates redirecting focus to the inline menu list. */ private focusInlineMenuList() { - this.inlineMenuListPort?.postMessage({ command: "focusInlineMenuList" }); + this.inlineMenuListPort?.postMessage({ command: "focusAutofillInlineMenuList" }); } /** diff --git a/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-list.ts b/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-list.ts index f73275a5ad3..1687029074b 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-list.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-list.ts @@ -26,5 +26,5 @@ export type AutofillInlineMenuListWindowMessageHandlers = { }: { message: UpdateAutofillInlineMenuListCiphersMessage; }) => void; - focusInlineMenuList: () => void; + focusAutofillInlineMenuList: () => void; }; diff --git a/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.spec.ts b/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.spec.ts index ec06edb25fa..7254154e9a0 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.spec.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.spec.ts @@ -338,7 +338,7 @@ describe("AutofillInlineMenuList", () => { "setAttribute", ); - postWindowMessage({ command: "focusInlineMenuList" }); + postWindowMessage({ command: "focusAutofillInlineMenuList" }); expect(inlineMenuContainerSetAttributeSpy).toHaveBeenCalledWith("role", "dialog"); expect(inlineMenuContainerSetAttributeSpy).toHaveBeenCalledWith("aria-modal", "true"); @@ -356,7 +356,7 @@ describe("AutofillInlineMenuList", () => { autofillInlineMenuList["inlineMenuListContainer"].querySelector("#unlock-button"); jest.spyOn(unlockButton as HTMLElement, "focus"); - postWindowMessage({ command: "focusInlineMenuList" }); + postWindowMessage({ command: "focusAutofillInlineMenuList" }); expect((unlockButton as HTMLElement).focus).toBeCalled(); }); @@ -368,7 +368,7 @@ describe("AutofillInlineMenuList", () => { autofillInlineMenuList["inlineMenuListContainer"].querySelector("#new-item-button"); jest.spyOn(newItemButton as HTMLElement, "focus"); - postWindowMessage({ command: "focusInlineMenuList" }); + postWindowMessage({ command: "focusAutofillInlineMenuList" }); expect((newItemButton as HTMLElement).focus).toBeCalled(); }); @@ -379,7 +379,7 @@ describe("AutofillInlineMenuList", () => { autofillInlineMenuList["inlineMenuListContainer"].querySelector(".fill-cipher-button"); jest.spyOn(firstCipherItem as HTMLElement, "focus"); - postWindowMessage({ command: "focusInlineMenuList" }); + postWindowMessage({ command: "focusAutofillInlineMenuList" }); expect((firstCipherItem as HTMLElement).focus).toBeCalled(); }); diff --git a/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts b/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts index 8a58c074acd..68ce6283403 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts @@ -27,7 +27,7 @@ export class AutofillInlineMenuList extends AutofillInlineMenuPageElement { initAutofillInlineMenuList: ({ message }) => this.initAutofillInlineMenuList(message), checkAutofillInlineMenuListFocused: () => this.checkInlineMenuListFocused(), updateAutofillInlineMenuListCiphers: ({ message }) => this.updateListItems(message.ciphers), - focusInlineMenuList: () => this.focusInlineMenuList(), + focusAutofillInlineMenuList: () => this.focusInlineMenuList(), }; constructor() {