[epiphany/gnome-3-32] Fix password manager when there is no username
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-32] Fix password manager when there is no username
- Date: Mon, 29 Apr 2019 21:35:00 +0000 (UTC)
commit 8ab62818895e96f1ac13be3003b5f7019dea5d42
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Apr 28 22:48:02 2019 +0000
Fix password manager when there is no username
We should autofill passwords even if the form has no username.
(cherry picked from commit b1a938523e2a02687af25d9df6edd90a56795762)
embed/web-extension/resources/js/ephy.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/embed/web-extension/resources/js/ephy.js b/embed/web-extension/resources/js/ephy.js
index 8ee5d6569..874aad9af 100644
--- a/embed/web-extension/resources/js/ephy.js
+++ b/embed/web-extension/resources/js/ephy.js
@@ -329,7 +329,9 @@ Ephy.PasswordManager = class PasswordManager
{
let element = this._takePendingPromise(id)
if (element) {
- if (username !== '' && password !== '')
+ if (username === '')
+ username = null;
+ if (password !== '')
element.resolver({username, password});
else
element.resolver(null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]