fix(autofill): defer the direct-hotkey success toast too
autofillFillEntry (Ctrl+Shift+L/P path) still toasted "Password filled:" optimistically alongside the honest UIPI failure toast. Route it through autofillPendingToast / Bridge.onAutofillResult like the quick-search path, and label with entryDisplayName (site is often empty -> "filled:" + nothing). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -239,8 +239,11 @@ async function autofillFillEntry(entry, kind) {
|
||||
// password-only kind → empty username → Delphi skips Tab.
|
||||
// full kind with empty entry.username → also no Tab (Delphi handles it).
|
||||
const user = (kind === 'password') ? '' : (entry.username || '');
|
||||
// Toast deferred to Bridge.onAutofillResult — no success lie when the
|
||||
// target runs elevated (UIPI drops the keystrokes).
|
||||
autofillPendingToast = (kind === 'password' ? 'Password filled: ' : 'Autofilled: ')
|
||||
+ entryDisplayName(entry);
|
||||
Bridge.executeAutofill(user, password);
|
||||
toast((kind === 'password' ? 'Password filled: ' : 'Autofilled: ') + entry.site);
|
||||
// Audit (best-effort, ignore failures)
|
||||
fetch('' + '/audit', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user