summaryrefslogtreecommitdiff
path: root/hide-passwordmgr.patch
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-04-16 19:05:44 -0400
committerB. Stack <bgstack15@gmail.com>2022-04-16 19:05:44 -0400
commit09e01865cff2ef74c3c2593e1c0f8e06af653dfb (patch)
tree7423c7978fbb624c99e773fa379b5462006b8106 /hide-passwordmgr.patch
parentdeploy ubo xpi from %install, not %build, silly! (diff)
downloadlibrewolf-fedora-ff-b99.0.1-1.tar.gz
librewolf-fedora-ff-b99.0.1-1.tar.bz2
librewolf-fedora-ff-b99.0.1-1.zip
fix _buildroot which is just buildrootb99.0.1-1
Diffstat (limited to 'hide-passwordmgr.patch')
-rw-r--r--hide-passwordmgr.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/hide-passwordmgr.patch b/hide-passwordmgr.patch
new file mode 100644
index 0000000..933b4e6
--- /dev/null
+++ b/hide-passwordmgr.patch
@@ -0,0 +1,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");
+ },
bgstack15