[epiphany/gnome-3-30] web-extension: avoid invalid password save requests
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-30] web-extension: avoid invalid password save requests
- Date: Thu, 18 Apr 2019 20:28:31 +0000 (UTC)
commit 5dceef99f56eff46a3d7733b10edfd914ef02ad0
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Apr 18 15:24:58 2019 -0500
web-extension: avoid invalid password save requests
This fixes the same issue addressed by !268, but for the 3.30 branch.
https://bugzilla.redhat.com/show_bug.cgi?id=1701250
embed/web-extension/ephy-web-extension.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 9b3fddfa7..bb1fdc3ab 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -548,9 +548,9 @@ handle_method_call (GDBusConnection *connection,
ephy_password_manager_save (extension->password_manager,
request->origin,
request->target_origin,
- request->username,
+ request->username && request->username_field_name ? request->username :
NULL,
request->password,
- request->username_field_name,
+ request->username_field_name && request->username ?
request->username_field_name : NULL,
request->password_field_name,
request->is_new);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]