[epiphany/mcatanzaro/even-more-password-cleanups: 1/2] Fix password manager when there is no username
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/even-more-password-cleanups: 1/2] Fix password manager when there is no username
- Date: Sun, 28 Apr 2019 23:14:28 +0000 (UTC)
commit 03aac5a09f603f79b4675b8404bb2ddae8529431
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Apr 28 17:48:02 2019 -0500
Fix password manager when there is no username
We should autofill passwords even if the form has no username.
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 9588e4ee6..55556abeb 100644
--- a/embed/web-extension/resources/js/ephy.js
+++ b/embed/web-extension/resources/js/ephy.js
@@ -330,7 +330,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]