From 92207c99ab0fe9d7b1500ecf9b5a17e44cc495dc Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Wed, 11 Apr 2018 12:17:17 +0200 Subject: [PALEMOON] [Frontend vs Backend] Login Manager: Bug 1045987 - Implemented "getBrowserForContentWindow" method in tabbrowser.xml --- application/palemoon/base/content/tabbrowser.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'application') diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index ef0af5afb..b5395bbd9 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -302,6 +302,16 @@ + + + + + + + -- cgit v1.2.3 From 87adbf432207434cfc528f914998d58dbfebb5a7 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Wed, 11 Apr 2018 13:01:25 +0200 Subject: [PALEMOON] Preferences - Security - Password Manager: Use LoginHelper.isMasterPasswordSet instead of _masterPasswordSet --- .../palemoon/components/preferences/security.js | 25 ++++------------------ 1 file changed, 4 insertions(+), 21 deletions(-) (limited to 'application') diff --git a/application/palemoon/components/preferences/security.js b/application/palemoon/components/preferences/security.js index a337f398c..56664bf66 100644 --- a/application/palemoon/components/preferences/security.js +++ b/application/palemoon/components/preferences/security.js @@ -3,6 +3,9 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +XPCOMUtils.defineLazyModuleGetter(this, "LoginHelper", + "resource://gre/modules/LoginHelper.jsm"); + Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm"); var gSecurityPane = { @@ -141,7 +144,7 @@ var gSecurityPane = { */ _initMasterPasswordUI: function () { - var noMP = !this._masterPasswordSet(); + var noMP = !LoginHelper.isMasterPasswordSet(); var button = document.getElementById("changeMasterPassword"); button.disabled = noMP; @@ -150,26 +153,6 @@ var gSecurityPane = { checkbox.checked = !noMP; }, - /** - * Returns true if the user has a master password set and false otherwise. - */ - _masterPasswordSet: function () - { - const Cc = Components.classes, Ci = Components.interfaces; - var secmodDB = Cc["@mozilla.org/security/pkcs11moduledb;1"]. - getService(Ci.nsIPKCS11ModuleDB); - var slot = secmodDB.findSlotByName(""); - if (slot) { - var status = slot.status; - var hasMP = status != Ci.nsIPKCS11Slot.SLOT_UNINITIALIZED && - status != Ci.nsIPKCS11Slot.SLOT_READY; - return hasMP; - } else { - // XXX I have no bloody idea what this means - return false; - } - }, - /** * Enables/disables the master password button depending on the state of the * "use master password" checkbox, and prompts for master password removal if -- cgit v1.2.3 From 1d1955f1ebaa22cb14192b8e7ee2948e6497487e Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Wed, 11 Apr 2018 13:05:43 +0200 Subject: [PALEMOON] [Frontend vs Backend] Password Manager - Implemented Popup Notifications (it is not complete) --- application/palemoon/base/content/popup-notifications.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'application') diff --git a/application/palemoon/base/content/popup-notifications.inc b/application/palemoon/base/content/popup-notifications.inc index 3112de597..7be975b7f 100644 --- a/application/palemoon/base/content/popup-notifications.inc +++ b/application/palemoon/base/content/popup-notifications.inc @@ -89,6 +89,14 @@ + +