summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2019-04-18 15:24:58 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2019-04-18 15:28:15 -0500
commit5dceef99f56eff46a3d7733b10edfd914ef02ad0 (patch)
treef1a84547b97c43d1a9c0a4efa31cdb0d247549cc
parentfa75e4545d5478d340657142b395294d5569423d (diff)
downloadepiphany-5dceef99f56eff46a3d7733b10edfd914ef02ad0.tar.gz
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
-rw-r--r--embed/web-extension/ephy-web-extension.c4
1 files 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);
}