diff options
author | New Tobin Paradigm <email@mattatobin.com> | 2018-04-12 07:33:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 07:33:58 -0400 |
commit | 706493af4e0f67bffdcc77a5c21fb26a0aa43afe (patch) | |
tree | 83212fa3f199e8ee7fdf3b11c3b732832a42b24f /application/palemoon/base/content/content.js | |
parent | 8c19f94d2957ad41aa11ceb31792e3b6b35b05e2 (diff) | |
parent | 33f860b25e1db06f18d06eba9fcdd2de895d9dbc (diff) | |
download | UXP-706493af4e0f67bffdcc77a5c21fb26a0aa43afe.tar UXP-706493af4e0f67bffdcc77a5c21fb26a0aa43afe.tar.gz UXP-706493af4e0f67bffdcc77a5c21fb26a0aa43afe.tar.lz UXP-706493af4e0f67bffdcc77a5c21fb26a0aa43afe.tar.xz UXP-706493af4e0f67bffdcc77a5c21fb26a0aa43afe.zip |
Merge pull request #125 from janekptacijarabaci/pm_loginManager_1
[PALEMOON] Fix Login Manager (Prompter) - basic
Diffstat (limited to 'application/palemoon/base/content/content.js')
-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 d64f69c6e..19c8b0682 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); |