From 52f7aa8f40fa27d73025b02de914a3c0a52e570e Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Thu, 14 May 2026 08:32:15 +0200 Subject: [PATCH] Update content.ts --- apps/browser-extension/src/entrypoints/content.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/browser-extension/src/entrypoints/content.ts b/apps/browser-extension/src/entrypoints/content.ts index 47be24ce4..f21066d57 100644 --- a/apps/browser-extension/src/entrypoints/content.ts +++ b/apps/browser-extension/src/entrypoints/content.ts @@ -389,10 +389,7 @@ function initializeLoginDetector(container: HTMLElement): void { if (lastAutofilledResponse.success && lastAutofilledResponse.credential) { /* - * Skip the prompt entirely when the submitted URL is already linked - * (host-equivalent) to the autofilled credential. Without this guard - * the user would see "Add URL?", click it, and the background dedup - * would silently no-op — confusing UX. + * Skip the prompt when the submitted URL is already linked. */ const linkCheck = await sendMessage('IS_URL_LINKED_TO_CREDENTIAL', { itemId: lastAutofilledResponse.credential.itemId, @@ -400,7 +397,7 @@ function initializeLoginDetector(container: HTMLElement): void { }, 'background') as { linked: boolean }; if (!linkCheck.linked) { - // User used an existing credential: offer to add URL to it + // Current URL is not linked to the existing credential, show the prompt. showAddUrlPrompt(container, { login, existingCredential: lastAutofilledResponse.credential,