Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Autofill form directly after creating new credential (#622)

Leendert de Borst5d0540ee2b4d
diff --git a/browser-extensions/chrome/src/contentScript/Popup.ts b/browser-extensions/chrome/src/contentScript/Popup.ts
index a7cc8a843..86b509474 100644
--- a/browser-extensions/chrome/src/contentScript/Popup.ts
+++ b/browser-extensions/chrome/src/contentScript/Popup.ts
@@ -338,8 +338,11 @@ export function createAutofillPopup(input: HTMLInputElement, credentials: Creden
};
chrome.runtime.sendMessage({ type: 'CREATE_IDENTITY', credential }, () => {
- // Refresh the popup to show new identity.
- openAutofillPopup(input);
+ // Close popup.
+ removeExistingPopup();
+
+ // Fill the form with the new identity immediately.
+ fillCredential(credential, input);
});
} catch (error) {
console.error('Error creating identity:', error);