From 09e01865cff2ef74c3c2593e1c0f8e06af653dfb Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sat, 16 Apr 2022 19:05:44 -0400 Subject: fix _buildroot which is just buildroot --- hide-passwordmgr.patch | 29 +++++++++++++++++++++++++++++ librewolf.spec | 42 ++++++++++++++++++++++-------------------- 2 files changed, 51 insertions(+), 20 deletions(-) create mode 100644 hide-passwordmgr.patch 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"); + }, diff --git a/librewolf.spec b/librewolf.spec index ca4fa7a..8b840a2 100644 --- a/librewolf.spec +++ b/librewolf.spec @@ -417,24 +417,25 @@ Patch901: bootstrap-without-vcs.patch Patch902: context-menu.patch Patch903: custom-ubo-assets-bootstrap-location.patch Patch904: disable-data-reporting-at-compile-time.patch -Patch905: librewolf-pref-pane.patch -Patch906: mozilla_dirs.patch -Patch907: remove_addons.patch -Patch908: allow-searchengines-non-esr.patch -Patch909: disable-pocket.patch -Patch910: remove-internal-plugin-certs.patch -Patch911: stop-undesired-requests2.patch -Patch912: handlers.patch -Patch913: hide-default-browser.patch -Patch914: pref-naming.patch -Patch915: privacy-preferences.patch -Patch916: remap-links.patch -Patch917: remove-branding-urlbar.patch -Patch918: remove-cfrprefs.patch -Patch919: remove-organization-policy-banner.patch -Patch920: remove-snippets-from-home.patch -Patch921: sanitizing-description.patch -Patch922: urlbarprovider-interventions.patch +Patch905: hide-passwordmgr.patch +Patch906: librewolf-pref-pane.patch +Patch907: mozilla_dirs.patch +Patch908: remove_addons.patch +Patch909: allow-searchengines-non-esr.patch +Patch910: disable-pocket.patch +Patch911: remove-internal-plugin-certs.patch +Patch912: stop-undesired-requests2.patch +Patch913: handlers.patch +Patch914: hide-default-browser.patch +Patch915: pref-naming.patch +Patch916: privacy-preferences.patch +Patch917: remap-links.patch +Patch918: remove-branding-urlbar.patch +Patch919: remove-cfrprefs.patch +Patch920: remove-organization-policy-banner.patch +Patch921: remove-snippets-from-home.patch +Patch922: sanitizing-description.patch +Patch923: urlbarprovider-interventions.patch %description Mozilla Firefox is an open-source web browser, designed for standards @@ -556,6 +557,7 @@ export MOZ_NOSPAM=1 %patch920 -p1 %patch921 -p1 %patch922 -p1 +%patch923 -p1 sed -i '/"pocket"/d' browser/components/moz.build sed -i "/SaveToPocket\.init/d" browser/components/BrowserGlue.jsm sed -i -r -e '/organizationalUnit.{0,5}=.{0,5}Mozilla/{N;N;N;d}' toolkit/mozapps/extensions/internal/XPIInstall.jsm @@ -862,8 +864,8 @@ mkdir -p test_results %{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/chrome/en-US/locale/browser/bookmarks.html %endif -mkdir -p %{_buildroot}%{mozappdir}/browser/extensions -cp -p %{SOURCE200} %{_buildroot}%{mozappdir}/browser/extensions/ +mkdir -p %{buildroot}%{mozappdir}/browser/extensions +cp -p %{SOURCE200} %{buildroot}%{mozappdir}/browser/extensions/ DESTDIR=%{buildroot} make -C objdir install %{__mkdir_p} %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications} -- cgit