diff --git a/apps/browser/src/autofill/background/overlay.background.ts b/apps/browser/src/autofill/background/overlay.background.ts index a6b2df2157..4f60b61473 100644 --- a/apps/browser/src/autofill/background/overlay.background.ts +++ b/apps/browser/src/autofill/background/overlay.background.ts @@ -315,12 +315,9 @@ export class OverlayBackground implements OverlayBackgroundInterface { } async handleOverlayCiphersUpdate(updateOverlayCiphersParams: UpdateOverlayCiphersParams) { - if (!updateOverlayCiphersParams) { - return; - } - const { updateAllCipherTypes, openInlineMenu } = updateOverlayCiphersParams; const currentTab = await BrowserApi.getTabFromCurrentWindowId(); + if (this.focusedFieldData && currentTab?.id !== this.focusedFieldData.tabId) { const focusedFieldTab = await BrowserApi.getTab(this.focusedFieldData.tabId); this.closeInlineMenu({ tab: focusedFieldTab }, { forceCloseInlineMenu: true });