mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 13:43:04 -05:00
add hide-passwordmgr.patch
This commit is contained in:
parent
7d64673c6f
commit
35c89a243f
2 changed files with 30 additions and 0 deletions
|
@ -3,6 +3,7 @@ patches/bootstrap-without-vcs.patch
|
|||
patches/context-menu.patch
|
||||
patches/custom-ubo-assets-bootstrap-location.patch
|
||||
patches/disable-data-reporting-at-compile-time.patch
|
||||
patches/hide-passwordmgr.patch
|
||||
patches/librewolf-pref-pane.patch
|
||||
patches/mozilla_dirs.patch
|
||||
patches/remove_addons.patch
|
||||
|
|
29
patches/hide-passwordmgr.patch
Normal file
29
patches/hide-passwordmgr.patch
Normal file
|
@ -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");
|
||||
},
|
Loading…
Reference in a new issue