From c93b7ba916f4d244b2896db2a2ad6b1c3c330267 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 19 Jan 2022 16:37:53 -0500 Subject: version 96.0.1 attempt 1 --- .gitignore | 4 +- README.md | 30 + allow-searchengines-non-esr.patch | 13 + allow-ubo-private-mode.patch | 18 + cbindgen-vendor.tar.xz | Bin 0 -> 5627872 bytes context-menu.patch | 43 + disable-data-reporting-at-compile-time.patch | 18 + disable-pocket.patch | 38 + hide-safe-browsing.patch | 21 + librewolf-branding.tgz | Bin 0 -> 914817 bytes librewolf-pref-pane.patch | 782 +++++++++++ librewolf.cfg | 498 +++++++ librewolf.spec | 1904 ++++++++++++++++++++++++++ local-settings.js | 7 + mozilla-vpn-ad.patch | 30 + mozilla_dirs.patch | 76 + policies.json | 95 ++ pref-naming.patch | 57 + remove-branding-urlbar.patch | 11 + remove-cfrprefs.patch | 19 + remove-internal-plugin-certs.patch | 18 + remove-organization-policy-banner.patch | 11 + remove-snippets-from-home.patch | 22 + remove_addons.patch | 74 + sanitizing-description.patch | 11 + search-config.json | 376 +++++ sources | 4 - stop-undesired-requests.patch | 55 + urlbarprovider-interventions.patch | 13 + 29 files changed, 4243 insertions(+), 5 deletions(-) create mode 100644 README.md create mode 100644 allow-searchengines-non-esr.patch create mode 100644 allow-ubo-private-mode.patch create mode 100644 cbindgen-vendor.tar.xz create mode 100644 context-menu.patch create mode 100644 disable-data-reporting-at-compile-time.patch create mode 100644 disable-pocket.patch create mode 100644 hide-safe-browsing.patch create mode 100644 librewolf-branding.tgz create mode 100644 librewolf-pref-pane.patch create mode 100755 librewolf.cfg create mode 100644 librewolf.spec create mode 100644 local-settings.js create mode 100644 mozilla-vpn-ad.patch create mode 100644 mozilla_dirs.patch create mode 100644 policies.json create mode 100644 pref-naming.patch create mode 100644 remove-branding-urlbar.patch create mode 100644 remove-cfrprefs.patch create mode 100644 remove-internal-plugin-certs.patch create mode 100644 remove-organization-policy-banner.patch create mode 100644 remove-snippets-from-home.patch create mode 100644 remove_addons.patch create mode 100644 sanitizing-description.patch create mode 100644 search-config.json delete mode 100644 sources create mode 100644 stop-undesired-requests.patch create mode 100644 urlbarprovider-interventions.patch diff --git a/.gitignore b/.gitignore index ee9699d..5419795 100644 --- a/.gitignore +++ b/.gitignore @@ -314,7 +314,6 @@ firefox-3.6.4.source.tar.bz2 /firefox-langpacks-62.0.3-20181002.tar.xz /firefox-63.0.source.tar.xz /firefox-langpacks-63.0-20181018.tar.xz -/cbindgen-vendor.tar.xz /firefox-langpacks-63.0.1-20181101.tar.xz /firefox-63.0.1.source.tar.xz /firefox-63.0.3.source.tar.xz @@ -489,3 +488,6 @@ firefox-3.6.4.source.tar.bz2 /firefox-langpacks-96.0-20220111.tar.xz /firefox-langpacks-96.0.1-20220118.tar.xz /firefox-96.0.1.source.tar.xz +*.spec? +.*.swp +*.source.tar.xz diff --git a/README.md b/README.md new file mode 100644 index 0000000..48a88a6 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# README for librewolf-fedora-ff + +## Overview +After using the [prep-librewolf-rpm.sh](https://gitlab.com/bgstack15/librewolf-fedora) script, a modified copy of Fedora Firefox src.rpm git repo exists on the local filesystem. + +If this README.md exists in a directory named `for-repo`, then it is still in its source location from the above link, and not in its final location. + +## This repository +This README file belongs in the modified copy of that Fedora Firefox src.rpm [git repository](https://src.fedoraproject.org/rpms/firefox). That modified git repo can be sent up to a [new web location](https://gitlab.com/bgstack15/librewolf-fedora-ff). + +Fedora [COPR](https://copr.fedorainfracloud.org/coprs/bgstack15/AfterMozilla/packages/) can then use rpkg to pull this new git repository, so users do not have to upload the 400MB src.rpm manually. + +## Using this repository +Script `git-helper.sh` included in the [librewolf-fedora](https://gitlab.com/bgstack15/librewolf-fedora) repository will add the new git repo for librewolf-fedora-ff and fix the .gitignore. + +## Differences from upstream repo +The Librewolf rpm git repo makes some changes to the Firefox rpm git repo. +Files are added or modified: +* this README.md +* .gitignore +* librewolf.spec +* LibreWolf patches that are not named here +* a few tarballs omitted from upstream git sources: + * cbindgen-vendor.tar.xz + * `firefox-langpacks-*.tar.xz` + +Files that are removed: +* sources + +Fedora's dist-git project provides a lookaside cache for large assets so they do not have to be stored in source control. The `sources` file links to those files, but we embed in the librewolf src.rpm the two tarballs we need. diff --git a/allow-searchengines-non-esr.patch b/allow-searchengines-non-esr.patch new file mode 100644 index 0000000..6418416 --- /dev/null +++ b/allow-searchengines-non-esr.patch @@ -0,0 +1,13 @@ +diff --git a/browser/components/enterprisepolicies/schemas/policies-schema.json b/browser/components/enterprisepolicies/schemas/policies-schema.json +index d436cf1ca1..ecd6e53b9e 100644 +--- a/browser/components/enterprisepolicies/schemas/policies-schema.json ++++ b/browser/components/enterprisepolicies/schemas/policies-schema.json +@@ -1074,7 +1074,7 @@ + }, + + "SearchEngines": { +- "enterprise_only": true, ++ "enterprise_only": false, + + "type": "object", + "properties": { diff --git a/allow-ubo-private-mode.patch b/allow-ubo-private-mode.patch new file mode 100644 index 0000000..ef08f46 --- /dev/null +++ b/allow-ubo-private-mode.patch @@ -0,0 +1,18 @@ +--- a/toolkit/components/extensions/Extension.jsm ++++ b/toolkit/components/extensions/Extension.jsm +@@ -2658,6 +2658,15 @@ + this.permissions.add(PRIVATE_ALLOWED_PERMISSION); + } + ++ if (this.id === "uBlock0@raymondhill.net") { ++ ExtensionPermissions.add(this.id, { ++ permissions: [PRIVATE_ALLOWED_PERMISSION], ++ origins: [], ++ }); ++ this.permissions.add(PRIVATE_ALLOWED_PERMISSION); ++ } ++ ++ + // We only want to update the SVG_CONTEXT_PROPERTIES_PERMISSION during install and + // upgrade/downgrade startups. + if (INSTALL_AND_UPDATE_STARTUP_REASONS.has(this.startupReason)) { diff --git a/cbindgen-vendor.tar.xz b/cbindgen-vendor.tar.xz new file mode 100644 index 0000000..7ee5ee3 Binary files /dev/null and b/cbindgen-vendor.tar.xz differ diff --git a/context-menu.patch b/context-menu.patch new file mode 100644 index 0000000..5685f96 --- /dev/null +++ b/context-menu.patch @@ -0,0 +1,43 @@ +diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc +--- a/browser/base/content/browser-context.inc ++++ b/browser/base/content/browser-context.inc +@@ -102,19 +102,16 @@ + oncommand="gContextMenu.openLinkInPrivateWindow();"/> + + + +- + + + + #endif + +- + +