From 87bf3b1714ba0f8f0c269eefba2aec7a5edab679 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 12 Apr 2018 09:24:59 +0200 Subject: [PALEMOON] [Frontend vs Backend] Password Manager: `InsecurePasswordUtils.checkForInsecurePasswords` is not a function --- application/palemoon/base/content/content.js | 7 +++++-- 1 file 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); -- cgit v1.2.3