From a30cb27e5e1e21201434a60989ec4862d81ff2d1 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Mon, 30 Sep 2024 21:37:49 +0300 Subject: [PATCH] Fix Predefined Sites for some pages --- keepassxc-browser/common/sites.js | 6 ++++-- keepassxc-browser/content/fields.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/keepassxc-browser/common/sites.js b/keepassxc-browser/common/sites.js index 2a65fa0..208d86c 100644 --- a/keepassxc-browser/common/sites.js +++ b/keepassxc-browser/common/sites.js @@ -35,7 +35,8 @@ const PREDEFINED_SITELIST = [ ]; const IMPROVED_DETECTION_PREDEFINED_SITELIST = [ - 'https://secure.chase.com/*' + 'https://secure.chase.com/*', + 'https://www.icloud.com/' ]; const googleUrl = 'https://accounts.google.com'; @@ -87,7 +88,8 @@ kpxcSites.exceptionFound = function(identifier, field) { || document.location.origin.startsWith('https://mail.protonmail.com') && identifier === 'mailboxPassword') { return true; - } else if (document.location.origin === 'https://www.patreon.com' && field?.name === 'current-password') { + } else if (document.location.origin === 'https://www.patreon.com' && + (field?.name === 'current-password' || field?.innerHTML?.includes('current-password'))) { return true; } else if (document.location.origin === 'https://wordpress.com' && identifier?.value === 'login__form-password') { return true; diff --git a/keepassxc-browser/content/fields.js b/keepassxc-browser/content/fields.js index 54241a4..9b74a45 100644 --- a/keepassxc-browser/content/fields.js +++ b/keepassxc-browser/content/fields.js @@ -105,7 +105,7 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) { totpInputs.length === DEFAULT_SEGMENTED_TOTP_FIELDS) && totpInputs.every( input => - (input.inputMode === 'numeric' && input.pattern.includes('0-9')) || + ((input.inputMode === 'numeric' || input.inputMode === '') && input.pattern.includes('0-9')) || ((input.type === 'text' || input.type === 'number') && input.maxLength === 1) || input.type === 'tel' )