[epiphany/mcatanzaro/even-more-password-cleanups: 3/4] 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: 3/4] Fix password manager when there is no username
- Date: Sun, 28 Apr 2019 23:11:43 +0000 (UTC)
commit d108d4b3b6c314bee72f427e1d3d3e11ca4bee22
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..776d93b57 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]