Merge pull request #931 from keepassxreboot/fix/165_fixes

Parse input fields correctly before passing them forward
This commit is contained in:
Sami Vänttinen 2020-07-10 07:20:16 +03:00 committed by GitHub
commit 1cb67e7ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -25,6 +25,7 @@ function adjustManifest(manifest) {
for (const elem in data['browser_action']['default_icon']) {
data['browser_action']['default_icon'][elem] = 'icons/keepassxc.svg';
}
delete data['version_name'];
} else if (manifest.includes('chromium')) {
delete data['applications'];
}

View file

@ -962,7 +962,7 @@ kpxc.initObserver = function() {
// Check if some class is changed that holds a form or input field(s). Ignore large forms.
const formInput = mut.target.querySelector('form input');
if (mut.attributeName === 'class' && formInput !== null && formInput.form.length < 20) {
kpxc.handleCredentialFields(Array.from(formInput.form.getElementsByTagName('input')));
kpxc.handleCredentialFields(kpxcObserverHelper.getInputs(formInput.form));
continue;
}

View file

@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "KeePassXC-Browser",
"version": "1.6.4",
"version_name": "1.6.4",
"version": "1.6.5",
"version_name": "1.6.5",
"description": "__MSG_extensionDescription__",
"author": "KeePassXC Team",
"icons": {