From 9a4a27890f7c443b11b7b38143964b7a6a5effde Mon Sep 17 00:00:00 2001 From: "R. de Veen" Date: Wed, 30 Jan 2019 21:30:58 +0100 Subject: [PATCH 1/3] Update Buildinstructions.md Fix Dutch typo. --- Documents/Manuals/Buildinstructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documents/Manuals/Buildinstructions.md b/Documents/Manuals/Buildinstructions.md index c8a3384..e7b2432 100644 --- a/Documents/Manuals/Buildinstructions.md +++ b/Documents/Manuals/Buildinstructions.md @@ -8,4 +8,4 @@ 1. `npm run dev`: This builds the project including source maps (for easy debugging) 2. `npm run watch`: This does the same as `dev`, but this command keeps watching for changes in source files and automatically rebuilds when a change is detected - 3. `npm run prod`: This creates a production build. This means it is minified en without source maps + 3. `npm run prod`: This creates a production build. This means it is minified and without source maps From af8945076d478c6cd49a099705949d0f235caac2 Mon Sep 17 00:00:00 2001 From: RoelVB Date: Wed, 28 Sep 2022 20:28:49 +0200 Subject: [PATCH 2/3] Fix: Handle changed password field for fieldset Fixes #86 --- src/classes/FieldSet.ts | 2 +- src/classes/PageControl.ts | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/classes/FieldSet.ts b/src/classes/FieldSet.ts index 511c3d3..3b6bc3b 100644 --- a/src/classes/FieldSet.ts +++ b/src/classes/FieldSet.ts @@ -41,7 +41,7 @@ export default class FieldSet * @param passwordField Pointer to the password field * @param usernameField Pointer to the username field */ - constructor(private _pageControl: PageControl, public readonly passwordField: JQuery, public readonly usernameField?: JQuery) { + constructor(private _pageControl: PageControl, public passwordField: JQuery, public readonly usernameField?: JQuery) { this._addListenerFunction('mousemove', this._onMouseMove.bind(this)); this._addListenerFunction('mousedown', this._onMouseDown.bind(this)); this._addListenerFunction('mouseleave', this._activateIcon.bind(this, true)); diff --git a/src/classes/PageControl.ts b/src/classes/PageControl.ts index 82e4790..1ea1416 100644 --- a/src/classes/PageControl.ts +++ b/src/classes/PageControl.ts @@ -83,8 +83,15 @@ export default class PageControl // We didn't find the username field. Check if password field is actually visible controlField = $passwordField; } // Else we didn't find a visible username of password field - if(controlField && !this._fieldSets.has(controlField[0])) // Only create a FieldSet once for every field - this._fieldSets.set(controlField[0], new FieldSet(this, $passwordField, controlField)); + + if(controlField) + { + if(this._fieldSets.has(controlField[0])) // We already have a fieldset for this controlfield? + this._fieldSets.get(controlField[0])!.passwordField = $passwordField; // Set the passwordfield again, it might have changed (This happens for Dropbox, see issue #86) + else + this._fieldSets.set(controlField[0], new FieldSet(this, $passwordField, controlField)); + } + return false; // Break the each() loop } }); From 234eec470ce8a859dff6acba298ede9ed66bc04e Mon Sep 17 00:00:00 2001 From: RoelVB Date: Wed, 28 Sep 2022 20:38:09 +0200 Subject: [PATCH 3/3] Version bump --- dist/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/manifest.json b/dist/manifest.json index f3b3c2a..3117f90 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -3,7 +3,7 @@ "name": "ChromeKeePass", "description": "Chrome extension for automatically entering credentials from KeePass/KeeWeb", - "version": "1.4.6", + "version": "1.4.7", "commands": { "redetect_fields": {