summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-12 09:24:59 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-12 09:24:59 +0200
commit87bf3b1714ba0f8f0c269eefba2aec7a5edab679 (patch)
tree8425ce81576ed5d25b9953ae8e2867a14442bfd3 /application/palemoon/base
parent6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529 (diff)
downloadUXP-87bf3b1714ba0f8f0c269eefba2aec7a5edab679.tar
UXP-87bf3b1714ba0f8f0c269eefba2aec7a5edab679.tar.gz
UXP-87bf3b1714ba0f8f0c269eefba2aec7a5edab679.tar.lz
UXP-87bf3b1714ba0f8f0c269eefba2aec7a5edab679.tar.xz
UXP-87bf3b1714ba0f8f0c269eefba2aec7a5edab679.zip
[PALEMOON] [Frontend vs Backend] Password Manager: `InsecurePasswordUtils.checkForInsecurePasswords` is not a function
Diffstat (limited to 'application/palemoon/base')
-rw-r--r--application/palemoon/base/content/content.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/application/palemoon/base/content/content.js b/application/palemoon/base/content/content.js
index 3587bbeef..5a30108e2 100644
--- a/application/palemoon/base/content/content.js
+++ b/application/palemoon/base/content/content.js
@@ -13,6 +13,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "BrowserUtils",
"resource://gre/modules/BrowserUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "LoginManagerContent",
"resource://gre/modules/LoginManagerContent.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "LoginFormFactory",
+ "resource://gre/modules/LoginManagerContent.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "InsecurePasswordUtils",
"resource://gre/modules/InsecurePasswordUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "FormSubmitObserver",
@@ -47,8 +49,9 @@ addMessageListener("Browser:HideSessionRestoreButton", function (message) {
});
addEventListener("DOMFormHasPassword", function(event) {
- InsecurePasswordUtils.checkForInsecurePasswords(event.target);
- LoginManagerContent.onFormPassword(event);
+ LoginManagerContent.onDOMFormHasPassword(event, content);
+ let formLike = LoginFormFactory.createFromForm(event.target);
+ InsecurePasswordUtils.reportInsecurePasswords(formLike);
});
addEventListener("DOMAutoComplete", function(event) {
LoginManagerContent.onUsernameInput(event);