blob: 933b4e666bab052e9944e511e05d77c93a0bc394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1847,6 +1847,13 @@ var gBrowserInit = {
)?.removeAttribute("key");
}
+ if (Services.prefs.getBoolPref("librewolf.hidePasswdmgr", false)) {
+ PanelMultiView.getViewNode(
+ document,
+ "appMenu-passwords-button"
+ )?.remove();
+ }
+
this._loadHandled = true;
},
--- a/browser/components/preferences/privacy.js
+++ b/browser/components/preferences/privacy.js
@@ -810,6 +810,10 @@ var gPrivacyPane = {
/* init HTTPS-Only mode */
this.initHttpsOnly();
+ if (Services.prefs.getBoolPref("librewolf.hidePasswdmgr", false)) {
+ document.getElementById("passwordsGroup")?.remove();
+ }
+
// Notify observers that the UI is now ready
Services.obs.notifyObservers(window, "privacy-pane-loaded");
},
|