Fix dynamic password input detection when replacing usename (#2896)

This commit is contained in:
Sami Vänttinen 2026-03-08 09:25:45 +02:00 committed by GitHub
parent 64fda92e27
commit f1f4c1e0ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;