b7a8f8c11f80
dismiss autofill selector when passkey toast appears; remove key icon from toast (v2.40.2)
- time
- 2026-05-13 16:34 UTC · 5 months ago
- machine
- koh2
- parent
- a8d7ee7ebc11
↓ peach-browser-b7a8f8c1.tar.gzatlas at this save
files changed5 files
manifest.firefox.json+1 −1manifest.json+1 −1package.json+1 −1src/content/index.ts+10 −0src/content/passkey-toast/PasskeyToast.tsx+0 −12manifest.firefox.json+1 −1
@@ -1,7 +1,7 @@11 {22 "manifest_version": 3,33 "name": "Peach",4- "version": "2.40.1",4+ "version": "2.40.2",55 "description": "Zero-knowledge password manager",66 "browser_specific_settings": {77 "gecko": {manifest.json+1 −1
@@ -1,7 +1,7 @@11 {22 "manifest_version": 3,33 "name": "Peach",4- "version": "2.40.1",4+ "version": "2.40.2",55 "description": "Zero-knowledge password manager",66 "action": {77 "default_popup": "src/popup/index.html",package.json+1 −1
@@ -1,6 +1,6 @@11 {22 "name": "peach",3- "version": "2.40.1",3+ "version": "2.40.2",44 "description": "Zero-knowledge password manager",55 "type": "module",66 "scripts": {src/content/index.ts+10 −0
@@ -904,6 +904,16 @@904904 sendResponse({ ok: true });905905 return true;906906 }907+ if (msg?.type === "SHOW_PASSKEY_TOAST") {908+ // Dismiss any open autofill selector so it doesn't appear alongside the toast.909+ if (currentDismiss) {910+ currentDismiss();911+ currentDismiss = null;912+ currentAnchorField = null;913+ }914+ passkeySummonActive = false;915+ return false; // inject.tsx owns the toast and calls sendResponse916+ }907917 if (msg?.type === "VAULT_UNLOCKED") {908918 if (passkeySummonActive) {909919 // This unlock was for a pending passkey GET request. Just dismiss thesrc/content/passkey-toast/PasskeyToast.tsx+0 −12
@@ -54,10 +54,6 @@5454 ].join(' ')}5555 >5656 <div class="peach-passkey-toast-body">57- <div class="peach-passkey-toast-icon">58- <KeyIcon />59- </div>60-6157 <h2 class="peach-passkey-toast-headline">6258 sign in to {props.site}?6359 </h2>@@ -92,11 +88,3 @@9288 );9389 }9490 95-function KeyIcon() {96- return (97- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">98- <circle cx="7" cy="11" r="3.5" />99- <path d="M10.5 11h9M16.5 11v3M19.5 11v2" />100- </svg>101- );102-}