From 09adf5d3f5654942f07debdf3fd7e0a9086d2371 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Fri, 6 Mar 2026 21:58:24 +0200 Subject: [PATCH] Fix dynamic password input detection when replacing usename --- keepassxc-browser/common/sites.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keepassxc-browser/common/sites.js b/keepassxc-browser/common/sites.js index c6081dd..9027aa8 100644 --- a/keepassxc-browser/common/sites.js +++ b/keepassxc-browser/common/sites.js @@ -124,9 +124,10 @@ kpxcSites.combinationExceptionFound = function(existingCombination) { return false; } - // Exception for e.g. Google. They replace the username input with password input using identical className. + // Exception for Google. They replace the username input with password input using identical className. // If detected, remove the username from the combination. - if (existingCombination?.username?.className?.length > 0 + if (document.location.origin === 'https://accounts.google.com' + && existingCombination?.username?.className?.length > 0 && existingCombination?.password?.className?.length > 0 && existingCombination?.username?.className === existingCombination?.password?.className) { return true;