diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-04-10 18:22:10 +0000 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-04-10 18:22:10 +0000 |
commit | a1f1245927decd6bccd56159f92ae849b01e6a3e (patch) | |
tree | 5ecacfd9dfd16a4bbf9dc631eb29dc3b43e1d7c9 /binary_tarball/scripts/3_Configure_Source_Code.sh | |
parent | update changelog (diff) | |
parent | Remove mozilla plugin certificates, fixes #112 (diff) | |
download | librewolf-linux-a1f1245927decd6bccd56159f92ae849b01e6a3e.tar.gz librewolf-linux-a1f1245927decd6bccd56159f92ae849b01e6a3e.tar.bz2 librewolf-linux-a1f1245927decd6bccd56159f92ae849b01e6a3e.zip |
Merge branch 'remove_plugin_certificates' into 'master'
Remove plugin certificates and some pre-installed extensions
Closes #59 and #112
See merge request librewolf-community/browser/linux!8
Diffstat (limited to 'binary_tarball/scripts/3_Configure_Source_Code.sh')
-rwxr-xr-x | binary_tarball/scripts/3_Configure_Source_Code.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binary_tarball/scripts/3_Configure_Source_Code.sh b/binary_tarball/scripts/3_Configure_Source_Code.sh index 2c06643..dc8fea4 100755 --- a/binary_tarball/scripts/3_Configure_Source_Code.sh +++ b/binary_tarball/scripts/3_Configure_Source_Code.sh @@ -122,11 +122,21 @@ patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/build-with-libstdc++-7.patch" patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/drop-libstdcxx-check.patch" patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/add-missing-include-functional.patch" +# Remove some pre-installed addons that might be questionable +patch -p1 -i ${CI_PROJECT_DIR}/remove_addons.patch + # Disabling Pocket printf "\nDisabling Pocket\n"; sed -i "s/'pocket'/#'pocket'/g" browser/components/moz.build # this one only to remove an annoying error message: sed -i 's#SaveToPocket.init();#// SaveToPocket.init();#g' browser/components/BrowserGlue.jsm +# Remove Internal Plugin Certificates +_cert_sed='s#if (aCert.organizationalUnit == "Mozilla [[:alpha:]]\+") {\n' +_cert_sed+='[[:blank:]]\+return AddonManager\.SIGNEDSTATE_[[:upper:]]\+;\n' +_cert_sed+='[[:blank:]]\+}#' +_cert_sed+='// NOTE: removed#g' +sed -z "$_cert_sed" -i toolkit/mozapps/extensions/internal/XPIInstall.jsm + # allow SearchEngines option in non-ESR builds sed -i 's#"enterprise_only": true,#"enterprise_only": false,#g' browser/components/enterprisepolicies/schemas/policies-schema.json |