0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00
LibreWolf/patches/hide-passwordmgr.patch

30 lines
836 B
Diff
Raw Permalink Normal View History

2024-06-15 10:26:09 -05:00
--- a/browser/base/content/browser-init.js
+++ b/browser/base/content/browser-init.js
@@ -300,6 +300,13 @@ var gBrowserInit = {
2022-04-16 16:37:49 -05:00
)?.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
2024-06-15 10:26:09 -05:00
@@ -1214,6 +1214,10 @@ var gPrivacyPane = {
this.initWebAuthn();
2022-04-16 16:37:49 -05:00
+ 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");
},