diff --git a/apps/browser/src/autofill/background/abstractions/overlay.background.ts b/apps/browser/src/autofill/background/abstractions/overlay.background.ts index 10f7583793d..7887658a9a3 100644 --- a/apps/browser/src/autofill/background/abstractions/overlay.background.ts +++ b/apps/browser/src/autofill/background/abstractions/overlay.background.ts @@ -137,7 +137,7 @@ export type PortOnMessageHandlerParams = PortMessageParam & PortConnectionParam; export type InlineMenuButtonPortMessageHandlers = { [key: string]: CallableFunction; autofillInlineMenuButtonClicked: ({ port }: PortConnectionParam) => void; - triggerDelayedInlineMenuClosure: ({ port }: PortConnectionParam) => void; + triggerDelayedAutofillInlineMenuClosure: ({ port }: PortConnectionParam) => void; autofillInlineMenuBlurred: () => void; redirectAutofillInlineMenuFocusOut: ({ message, port }: PortOnMessageHandlerParams) => void; updateAutofillInlineMenuColorScheme: () => void; diff --git a/apps/browser/src/autofill/background/overlay.background.spec.ts b/apps/browser/src/autofill/background/overlay.background.spec.ts index 834b3322afe..3a544c7d577 100644 --- a/apps/browser/src/autofill/background/overlay.background.spec.ts +++ b/apps/browser/src/autofill/background/overlay.background.spec.ts @@ -1326,6 +1326,8 @@ describe("OverlayBackground", () => { ); }); }); + + describe("triggerDelayedAutofillInlineMenuClosure", () => {}); }); describe("inline menu list message handlers", () => {}); diff --git a/apps/browser/src/autofill/background/overlay.background.ts b/apps/browser/src/autofill/background/overlay.background.ts index d514e8b201d..06c2a2e0865 100644 --- a/apps/browser/src/autofill/background/overlay.background.ts +++ b/apps/browser/src/autofill/background/overlay.background.ts @@ -99,7 +99,7 @@ export class OverlayBackground implements OverlayBackgroundInterface { }; private readonly inlineMenuButtonPortMessageHandlers: InlineMenuButtonPortMessageHandlers = { autofillInlineMenuButtonClicked: ({ port }) => this.handleInlineMenuButtonClicked(port), - triggerDelayedInlineMenuClosure: ({ port }) => + triggerDelayedAutofillInlineMenuClosure: ({ port }) => this.triggerDelayedInlineMenuClosure(port.sender), autofillInlineMenuBlurred: () => this.checkInlineMenuListFocused(), redirectAutofillInlineMenuFocusOut: ({ message, port }) => diff --git a/apps/browser/src/autofill/overlay/inline-menu/iframe-content/autofill-inline-menu-iframe.service.ts b/apps/browser/src/autofill/overlay/inline-menu/iframe-content/autofill-inline-menu-iframe.service.ts index b5b5075b599..964d28bb6ed 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/iframe-content/autofill-inline-menu-iframe.service.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/iframe-content/autofill-inline-menu-iframe.service.ts @@ -18,7 +18,7 @@ export class AutofillInlineMenuIframeService implements AutofillInlineMenuIframe private ariaAlertTimeout: number | NodeJS.Timeout; private delayedCloseTimeout: number | NodeJS.Timeout; private readonly fadeInOpacityTransition = "opacity 125ms ease-out 0s"; - private readonly fadeOutOpacityTransition = "opacity 60ms ease-out 0s"; + private readonly fadeOutOpacityTransition = "opacity 65ms ease-out 0s"; private iframeStyles: Partial = { all: "initial", position: "fixed", diff --git a/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.spec.ts b/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.spec.ts index 28f2a3ca190..9ab3f16bad8 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.spec.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.spec.ts @@ -74,7 +74,7 @@ describe("AutofillInlineMenuButton", () => { await flushPromises(); expect(globalThis.parent.postMessage).not.toHaveBeenCalledWith({ - command: "triggerDelayedInlineMenuClosure", + command: "triggerDelayedAutofillInlineMenuClosure", }); }); @@ -85,7 +85,7 @@ describe("AutofillInlineMenuButton", () => { await flushPromises(); expect(globalThis.parent.postMessage).toHaveBeenCalledWith( - { command: "triggerDelayedInlineMenuClosure", portKey }, + { command: "triggerDelayedAutofillInlineMenuClosure", portKey }, "*", ); }); diff --git a/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.ts b/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.ts index 29bdce7b979..227a195ca9b 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/pages/button/autofill-inline-menu-button.ts @@ -121,7 +121,7 @@ class AutofillInlineMenuButton extends AutofillInlineMenuPageElement { return; } - this.postMessageToParent({ command: "triggerDelayedInlineMenuClosure" }); + this.postMessageToParent({ command: "triggerDelayedAutofillInlineMenuClosure" }); } }