diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-12 09:24:59 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-12 09:24:59 +0200 |
commit | 87bf3b1714ba0f8f0c269eefba2aec7a5edab679 (patch) | |
tree | 8425ce81576ed5d25b9953ae8e2867a14442bfd3 | |
parent | 6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529 (diff) | |
download | uxp-87bf3b1714ba0f8f0c269eefba2aec7a5edab679.tar.gz |
[PALEMOON] [Frontend vs Backend] Password Manager: `InsecurePasswordUtils.checkForInsecurePasswords` is not a function
-rw-r--r-- | application/palemoon/base/content/content.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/application/palemoon/base/content/content.js b/application/palemoon/base/content/content.js index 3587bbeef0..5a30108e2b 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); |