diff --git a/helpers/DATA/firefox/branding/LICENSE b/helpers/DATA/firefox/branding/LICENSE deleted file mode 100644 index 41dc2327f1698b99dd397a84f47b9596d0a516b5..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/LICENSE +++ /dev/null @@ -1,3 +0,0 @@ -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/helpers/DATA/firefox/branding/branding.nsi b/helpers/DATA/firefox/branding/branding.nsi deleted file mode 100644 index 413390cf532d0033ea9f70a00507fd57c5178c54..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/branding.nsi +++ /dev/null @@ -1,52 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# NSIS branding defines for official release builds. -# The nightly build branding.nsi is located in browser/installer/windows/nsis/ -# The unofficial build branding.nsi is located in browser/branding/unofficial/ - -# BrandFullNameInternal is used for some registry and file system values -# instead of BrandFullName and typically should not be modified. -!define BrandFullNameInternal "Abrowser" -!define BrandFullName "Abrowser" -!define CompanyName "Trisquel" -!define URLInfoAbout "http://trisquel.info/browser" -!define URLUpdateInfo "http://trisquel.info/wiki" -!define HelpLink "https://trisquel.info/en/wiki/abrowser-help" - -; The OFFICIAL define is a workaround to support different urls for Release and -; Beta since they share the same branding when building with other branches that -; set the update channel to beta. -!define OFFICIAL -!define URLStubDownload32 "http://trisquel.info/browser" -!define URLStubDownload64 "http://trisquel.info/browser" -!define URLManualDownload "http://trisquel.info/browser" -!define URLSystemRequirements "http://trisquel.info/browser" -!define Channel "release" - -# The installer's certificate name and issuer expected by the stub installer -!define CertNameDownload "Mozilla Corporation" -!define CertIssuerDownload "DigiCert SHA2 Assured ID Code Signing CA" - -# Dialog units are used so the UI displays correctly with the system's DPI -# settings. -# The dialog units for the bitmap's dimensions should match exactly with the -# bitmap's width and height in pixels. -!define APPNAME_BMP_WIDTH_DU "134u" -!define APPNAME_BMP_HEIGHT_DU "36u" -!define INTRO_BLURB_WIDTH_DU "258u" -!define INTRO_BLURB_EDGE_DU "170u" -!define INTRO_BLURB_LTR_TOP_DU "20u" -!define INTRO_BLURB_RTL_TOP_DU "12u" - -# UI Colors that can be customized for each channel -!define FOOTER_CONTROL_TEXT_COLOR_NORMAL 0x000000 -!define FOOTER_CONTROL_TEXT_COLOR_FADED 0x666666 -!define FOOTER_BKGRD_COLOR 0xFFFFFF -!define INTRO_BLURB_TEXT_COLOR 0x666666 -!define INSTALL_BLURB_TEXT_COLOR 0x666666 -!define INSTALL_PROGRESS_TEXT_COLOR_NORMAL 0x666666 -!define COMMON_TEXT_COLOR_NORMAL 0x000000 -!define COMMON_TEXT_COLOR_FADED 0x666666 -!define COMMON_BKGRD_COLOR 0xF0F0F0 diff --git a/helpers/DATA/firefox/branding/configure.sh b/helpers/DATA/firefox/branding/configure.sh deleted file mode 100644 index fc87159686fa7fa1564ab79b1370e958f6409d76..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/configure.sh +++ /dev/null @@ -1,5 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -MOZ_APP_DISPLAYNAME=Abrowser diff --git a/helpers/DATA/firefox/branding/content/jar.mn b/helpers/DATA/firefox/branding/content/jar.mn deleted file mode 100644 index 40e013ec50b8b3a8dabe4e8986adea935bfede4e..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/content/jar.mn +++ /dev/null @@ -1,17 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -browser.jar: -% content branding %content/branding/ contentaccessible=yes - content/branding/about.png - content/branding/about-logo.png - content/branding/about-logo@2x.png - content/branding/about-wordmark.svg - content/branding/icon16.png (../default16.png) - content/branding/icon32.png (../default32.png) - content/branding/icon48.png (../default48.png) - content/branding/icon64.png (../default64.png) - content/branding/icon128.png (../default128.png) - content/branding/identity-icons-brand.svg - content/branding/aboutDialog.css diff --git a/helpers/DATA/firefox/branding/content/moz.build b/helpers/DATA/firefox/branding/content/moz.build deleted file mode 100644 index eb4454d28f88bf1075c4e70e38a0f7943b6ffb1f..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/content/moz.build +++ /dev/null @@ -1,7 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/helpers/DATA/firefox/branding/dsstore b/helpers/DATA/firefox/branding/dsstore deleted file mode 100644 index 2d11482a750465312e1fa0f6957ba15992be0643..0000000000000000000000000000000000000000 Binary files a/helpers/DATA/firefox/branding/dsstore and /dev/null differ diff --git a/helpers/DATA/firefox/branding/firefox.VisualElementsManifest.xml b/helpers/DATA/firefox/branding/firefox.VisualElementsManifest.xml deleted file mode 100644 index 16e932c60e4519f24e91e72b70ed0d16a0bf384c..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/firefox.VisualElementsManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ -<Application xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> - <VisualElements - ShowNameOnSquare150x150Logo='on' - Square150x150Logo='browser\VisualElements\VisualElements_150.png' - Square70x70Logo='browser\VisualElements\VisualElements_70.png' - ForegroundText='light' - BackgroundColor='#000f40'/> -</Application> diff --git a/helpers/DATA/firefox/branding/locales/browserconfig.properties b/helpers/DATA/firefox/branding/locales/browserconfig.properties deleted file mode 100644 index 06cefece3b1e1fa17a3e7f3d187f751998f21178..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/locales/browserconfig.properties +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Do NOT localize or otherwise change these values -browser.startup.homepage=about:home diff --git a/helpers/DATA/firefox/branding/locales/en-US/brand.dtd b/helpers/DATA/firefox/branding/locales/en-US/brand.dtd deleted file mode 100644 index 2ca349abae44150bd95e06584c34732a8d22637c..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/locales/en-US/brand.dtd +++ /dev/null @@ -1,9 +0,0 @@ -<!-- This Source Code Form is subject to the terms of the Mozilla Public - - License, v. 2.0. If a copy of the MPL was not distributed with this - - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - -<!ENTITY brandShorterName "Abrowser"> -<!ENTITY brandShortName "Abrowser"> -<!ENTITY brandFullName "Abrowser"> -<!ENTITY vendorShortName "Trisquel"> -<!ENTITY trademarkInfo.part1 ""> diff --git a/helpers/DATA/firefox/branding/locales/en-US/brand.ftl b/helpers/DATA/firefox/branding/locales/en-US/brand.ftl deleted file mode 100644 index b575440ea01bf58c30b46a6d3bf180214f19c097..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/locales/en-US/brand.ftl +++ /dev/null @@ -1,5 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - --brand-short-name = Abrowser diff --git a/helpers/DATA/firefox/branding/locales/en-US/brand.properties b/helpers/DATA/firefox/branding/locales/en-US/brand.properties deleted file mode 100644 index c1a789910e9c85994125ccf9bc213f9239621432..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/locales/en-US/brand.properties +++ /dev/null @@ -1,10 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -brandShorterName=Abrowser -brandShortName=Abrowser -brandFullName=Abrowser -vendorShortName=Trisquel - -syncBrandShortName=Sync diff --git a/helpers/DATA/firefox/branding/locales/jar.mn b/helpers/DATA/firefox/branding/locales/jar.mn deleted file mode 100644 index c78c82947acdb089ae40db3487725567fbd67f4e..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/locales/jar.mn +++ /dev/null @@ -1,13 +0,0 @@ -#filter substitution -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -[localization] @AB_CD@.jar: - branding (%*.ftl) - -@AB_CD@.jar: -% locale branding @AB_CD@ %locale/branding/ - locale/branding/brand.dtd (%brand.dtd) - locale/branding/brand.properties (%brand.properties) - locale/branding/browserconfig.properties diff --git a/helpers/DATA/firefox/branding/locales/moz.build b/helpers/DATA/firefox/branding/locales/moz.build deleted file mode 100644 index eb4454d28f88bf1075c4e70e38a0f7943b6ffb1f..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/locales/moz.build +++ /dev/null @@ -1,7 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/helpers/DATA/firefox/branding/moz.build b/helpers/DATA/firefox/branding/moz.build deleted file mode 100644 index 9045cee11bb858092868cd8900c4e8f8e641c3b2..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/moz.build +++ /dev/null @@ -1,13 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -DIRS += ['content', 'locales'] - -DIST_SUBDIR = 'browser' -export('DIST_SUBDIR') - -include('../branding-common.mozbuild') -FirefoxBranding() diff --git a/helpers/DATA/firefox/branding/pref/firefox-branding.js b/helpers/DATA/firefox/branding/pref/firefox-branding.js deleted file mode 100644 index 126f222828f951d8de2e6cff80373ec5cb40136c..0000000000000000000000000000000000000000 --- a/helpers/DATA/firefox/branding/pref/firefox-branding.js +++ /dev/null @@ -1,37 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -pref("startup.homepage_override_url","https://trisquel.info"); -pref("startup.homepage_welcome_url","https://trisquel.info/welcome"); -pref("startup.homepage_welcome_url.additional", ""); -// Interval: Time between checks for a new version (in seconds) -pref("app.update.interval", 43200); // 12 hours -// The time interval between the downloading of mar file chunks in the -// background (in seconds) -// 0 means "download everything at once" -pref("app.update.download.backgroundInterval", 0); -// Give the user x seconds to react before showing the big UI. default=192 hours -pref("app.update.promptWaitTime", 691200); -// URL user can browse to manually if for some reason all update installation -// attempts fail. -pref("app.update.url.manual", "https://trisquel.info/browser"); -// A default value for the "More information about this update" link -// supplied in the "An update is available" page of the update wizard. -pref("app.update.url.details", "https://trisquel.info/browser"); - -pref("app.vendorURL", "http://trisquel.info/browser/"); -pref("app.releaseNotesURL", "https://trisquel.info/browser"); - -// The number of days a binary is permitted to be old -// without checking for an update. This assumes that -// app.update.checkInstallTime is true. -pref("app.update.checkInstallTime.days", 63); - -// Give the user x seconds to reboot before showing a badge on the hamburger -// button. default=4 days -pref("app.update.badgeWaitTime", 345600); - -// Number of usages of the web console or scratchpad. -// If this is less than 5, then pasting code into the web console or scratchpad is disabled -pref("devtools.selfxss.count", 0); diff --git a/helpers/DATA/firefox/default-strict.patch b/helpers/DATA/firefox/default-strict.patch new file mode 100644 index 0000000000000000000000000000000000000000..45e70bd57660ece382ba01f704b5452b2a5d0413 --- /dev/null +++ b/helpers/DATA/firefox/default-strict.patch @@ -0,0 +1,22 @@ +--- a/browser/components/BrowserGlue.jsm 2019-12-19 12:45:18.535559096 -0500 ++++ b/browser/components/BrowserGlue.jsm 2019-12-19 12:45:08.935572729 -0500 +@@ -1580,6 +1580,19 @@ + + this._trackSlowStartup(); + ++ // Trisquel hack: if no user settings for tracking, default to strict instead of standard. ++ if (! ++ (Services.prefs.prefHasUserValue("browser.contentblocking.category") ++ || Services.prefs.prefHasUserValue("network.cookie.cookieBehavior") ++ || Services.prefs.prefHasUserValue("privacy.trackingprotection.enabled") ++ || Services.prefs.prefHasUserValue("privacy.trackingprotection.socialtracking.enabled") ++ || Services.prefs.prefHasUserValue("privacy.trackingprotection.cryptomining.enabled") ++ || Services.prefs.prefHasUserValue("privacy.trackingprotection.fingerprinting.enabled") ++ || Services.prefs.prefHasUserValue("privacy.trackingprotection.pbmode.enabled")) ++ ) { ++ Services.prefs.setStringPref("browser.contentblocking.category", "strict"); this._updateCBCategory; ++ } ++ + // Offer to reset a user's profile if it hasn't been used for 60 days. + const OFFER_PROFILE_RESET_INTERVAL_MS = 60 * 24 * 60 * 60 * 1000; + let lastUse = Services.appinfo.replacedLockTime; diff --git a/helpers/DATA/firefox/settings.js b/helpers/DATA/firefox/settings.js index def349c82e8de56d0ae32963735eec67f7a65179..de68b7d4514b46e816774ae9ce96a8a13cb91927 100644 --- a/helpers/DATA/firefox/settings.js +++ b/helpers/DATA/firefox/settings.js @@ -33,9 +33,6 @@ pref("network.http.proxy.pipelining", true); pref("network.http.pipelining.maxrequests", 10); pref("nglayout.initialpaint.delay", 0); -// Disable third party cookies -pref("network.cookie.cookieBehavior", 1); - // Extensions cannot be updated without permission pref("extensions.update.enabled", false); pref("extensions.systemAddon.update.enabled", false); @@ -95,6 +92,7 @@ pref("network.protocol-handler.external.apt+http",true); // https://webdevelopmentaid.wordpress.com/2013/10/21/customize-privacy-settings-in-mozilla-firefox-part-1-aboutconfig/ // https://panopticlick.eff.org // https://wiki.mozilla.org/Fingerprinting +pref("browser.contentblocking.features.strict", "tp,tpPrivate,cookieBehavior1,cm,fp,stp"); pref("privacy.donottrackheader.enabled", true); pref("privacy.donottrackheader.value", 1); pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false); @@ -102,7 +100,8 @@ pref("browser.safebrowsing.enabled", false); pref("browser.safebrowsing.downloads.remote.enabled", false); pref("browser.safebrowsing.malware.enabled", false); pref("browser.safebrowsing.provider.mozilla.gethashURL", ""); -pref("browser.safebrowsing.provider.mozilla.updateURL", ""); +// Uncomment next line to prevent automated connection to mozilla, to fetch block list +//pref("browser.safebrowsing.provider.mozilla.updateURL", ""); pref("services.sync.privacyURL", "https://trisquel.info/en/legal"); pref("social.enabled", false); pref("social.remote-install.enabled", false); @@ -133,10 +132,7 @@ pref("browser.aboutHomeSnippets.updateUrl", ""); pref("browser.sessionstore.max_resumed_crashes", 0); // Disable tracking protection by default, as it makes automated connections to fetch lists (not doing this until the newtab privacy block is reimplemented) //pref("browser.safebrowsing.provider.mozilla.updateURL", ""); -pref("privacy.trackingprotection.enabled", true); -pref("privacy.trackingprotection.pbmode.enabled", true); pref("urlclassifier.trackingTable", "test-track-simple,base-track-digest256,content-track-digest256"); -pref("browser.privacy.trackingprotection.menu", "always"); pref("privacy.trackingprotection.introURL", "https://www.mozilla.org/%LOCALE%/firefox/%VERSION%/tracking-protection/start/"); // Disable geolocation pref("geo.enabled", false); @@ -152,8 +148,7 @@ pref("privacy.resistFingerprinting", true); pref("webgl.disabled", true); // Don't reveal your internal IP when WebRTC is enabled pref("media.peerconnection.ice.no_host", true); -pref("privacy.trackingprotection.cryptomining.enabled", true); -pref("privacy.trackingprotection.fingerprinting.enabled", true); + // Services pref("gecko.handlerService.schemes.mailto.0.name", ""); @@ -256,3 +251,7 @@ pref("extensions.blocklist.url", ""); pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr", false); pref("extensions.htmlaboutaddons.discover.enabled", false); pref("extensions.htmlaboutaddons.recommendations.enabled", false); + +// Disable pingback on first run +pref("browser.newtabpage.activity-stream.fxaccounts.endpoint", ""); + diff --git a/helpers/make-firefox b/helpers/make-firefox index 013e19fa4dc051484c05c22b83f8c0f7f6660040..61b9364ea5142fc19e2853409509081e7feee9a6 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -18,38 +18,34 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=65 +VERSION=66 . ./config patch -p1 < debian/patches/partially-revert-google-search-update.patch patch -p1 < debian/patches/no-region-overrides-for-google-search.patch +sed 's/clang-9 |//' -i debian/control.in +sed 's/libclang-9-dev |//' -i debian/control.in +sed 's/llvm-9-dev |//' -i debian/control.in + rm debian/control # Disable activity-stream antifeatures. # These are not condensed into a single sed script to make it fail on individual commands that didn't change the source ActivityStream=browser/components/newtab/lib/ActivityStream.jsm sed '/^const DEFAULT_SITES/,/^])\;/c const DEFAULT_SITES = new Map\([[""]]\);' -i $ActivityStream -sed '/\["showSponsored/,/value/s/value: true/value: false/' -i $ActivityStream -sed '/\["telemetry"/,/value/s/value: true/value: false/' -i $ActivityStream -sed '/\["section.highlights.includePocket"/,/value/s/value: true/value: false/' -i $ActivityStream -sed '/\["telemetry.ping.endpoint"/,/value/s/value: .*/value: ""/' -i $ActivityStream -sed 's/\(read_more_endpoint:\) .http.*/\1 "",/' -i $ActivityStream -sed 's/\(stories_endpoint:\) .http.*/\1 "",/' -i $ActivityStream -sed 's/\(stories_referrer:\) .http.*/\1 "",/' -i $ActivityStream -sed 's/\(topics_endpoint:\) .http.*/\1 "",/' -i $ActivityStream -sed '/name: "telemetry"/,/value/s/value: true/value: false/' -i $ActivityStream +sed '/"showSponsored"/,/value/s/value: true/value: false/' -i $ActivityStream +sed '/"telemetry"/,/value/s/value: true/value: false/' -i $ActivityStream +sed '/"section.highlights.includePocket"/,/value/s/value: true/value: false/' -i $ActivityStream +sed '/"telemetry.ping.endpoint"/,/value/s/value: .*/value: ""/' -i $ActivityStream +sed '/read_more_endpoint/,+1s/http.*/",/' -i $ActivityStream +sed '/stories_endpoint/s/getpocket.cdn.mozilla.net/127.0.0.1/' -i $ActivityStream +sed '/stories_referrer/s/http.*/",/' -i $ActivityStream +sed '/topics_endpoint/s/getpocket.cdn.mozilla.net/127.0.0.1/' -i $ActivityStream sed '/name: "section.topstories"/,/return/s/return.*/return false;/' -i $ActivityStream sed 's/.Ubuntu., //' -i browser/components/newtab/css/activity-stream*.css - -#cp $DATA/watermark.svg ./browser/extensions/onboarding/content/img/watermark.svg -#cp $DATA/onboarding/bootstrap.js browser/extensions/onboarding -#cp $DATA/onboarding/onboarding.js browser/extensions/onboarding/content -#cp $DATA/onboarding/onboarding.properties browser/extensions/onboarding/locales/en-US -#for locale in $(ls -1 $DATA/onboarding/locales/); do -# cp $DATA/onboarding/locales/$locale/onboarding.properties l10n/$locale/browser/extensions/onboarding -#done +echo "#header-asrouter-container{display: none!important;}" >> browser/components/newtab/css/activity-stream-linux.css sed '/captivedetect.canonicalURL/s/http.*success.txt//' -i modules/libpref/init/all.js @@ -70,8 +66,6 @@ cp toolkit/components/telemetry/healthreport-prefs.js mobile/android/chrome/cont sed 's%https://www.mozilla.org/legal/privacy/%https://trisquel.info/legal%' -i ./browser/app/profile/firefox.js ./toolkit/content/aboutRights.xhtml -#sed 's%https://www.mozilla.org/firefox/central/%https://trisquel.info/browser%' -i browser/base/content/browser-appmenu.inc - # Remove Google API key sed '/Google API/,/google-api-keyfile/ d' debian/config/mozconfig.in -i @@ -82,12 +76,12 @@ sed 's/com.ubuntu/org.trisquel/' -i debian/config/mozconfig.in echo ac_add_options --disable-eme >> debian/config/mozconfig.in sed '/gmp-clearkey/d' -i ./debian/firefox.install.in -# Correct build error -echo ac_add_options --enable-stdcxx-compat >> debian/config/mozconfig.in - # Locale packages should provide firefox-locale-$LANG sed "s/Provides.*/Provides: abrowser-locale-@LANGCODE@/" -i debian/control.langpacks +# Provide firefox +sed "s/iceweasel,/iceweasel, firefox,/" -i debian/control.in + # Remove Ubuntu bookmarks sed -i /ubuntu-bookmarks/d debian/patches/series rm debian/patches/ubuntu-bookmarks* @@ -129,7 +123,23 @@ sed "s/^MOZ_PKG_NAME\t.*/MOZ_PKG_NAME\t\t:= abrowser/;" debian/build/config.mk ############################################################################3 sed "s_^Maintainer.*_Maintainer: $DEBFULLNAME <$DEBEMAIL>_g" -i debian/control.in +# Branding files +cp -a $DATA/branding/* browser/branding/official +cp -a $DATA/branding/* browser/branding/unofficial +cp -a $DATA/branding/* browser/branding/nightly +sed '/about-wordmark.svg/d' -i browser/base/content/aboutDialog.css +# Disable preprocessor +sed 's/_PP//' -i browser/branding/branding-common.mozbuild +cat << EOF >> debian/config/branch.mk +CHANNEL = release +MOZ_WANT_UNIT_TESTS = 0 +MOZ_BUILD_OFFICIAL = 0 +MOZ_ENABLE_BREAKPAD = 0 +MOZ_ENABLE_TELEMETRY = 0 +EOF + SEDSCRIPT=" +s|Updates from { -vendor-short-name } and { -brand-product-name }|Updates from { -vendor-short-name }|; s/Try Firefox/Try Abrowser/g; s/Firefox Home/Abrowser Home/g; s/Firefox Account/Sync Account/g; @@ -138,10 +148,14 @@ s/Adobe Flash/Flash/g; s|www.mozilla.com/firefox/central|trisquel.info/browser|g; s|mozilla.com/plugincheck|trisquel.info/browser|g; s|www.mozilla.com/legal/privacy|trisquel.info/legal|g; +s|Firefox Nightly|Abrowser|; +s|Nightly|Abrowser|g; +s|brandProductName=Firefox|brandProductName=Abrowser|; +s|Sign in to Firefox|Sign in to Sync|; " echo "Running batch replace operation" -find . -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -not -iregex '.*third_party/rust.*' -execdir /bin/sed --follow-symlinks -i "$SEDSCRIPT" '{}' ';' +find . -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -not -iregex '.*third_party/.*' -execdir /bin/sed --follow-symlinks -i "$SEDSCRIPT" '{}' ';' echo "Replacing Firefox with Abrowser on ./l10n" find l10n -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir /bin/sed --follow-symlinks -i "s/Firefox/Abrowser/" '{}' ';' @@ -149,20 +163,6 @@ find l10n -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -ex sed s/ubuntu/trisquel/g debian/distribution.ini -i sed "s/ubuntu_version/trisquel_version/; s/Ubuntu 10.10/Trisquel $REVISION/; s/1010/40/" -i debian/firefox.postinst.in -# Branding files -rm browser/branding/{official,aurora,nightly,unofficial} -rf -cp -a $DATA/branding/ browser/branding/official -cp -a $DATA/branding/ browser/branding/unofficial -# Disable preprocessor -sed 's/_PP//' -i browser/branding/branding-common.mozbuild -cat << EOF >> debian/config/branch.mk -CHANNEL = release -MOZ_WANT_UNIT_TESTS = 0 -MOZ_BUILD_OFFICIAL = 0 -MOZ_ENABLE_BREAKPAD = 0 -MOZ_ENABLE_TELEMETRY = 0 -EOF - # Delete stuff we don't use and that may contain trademaked logos rm -rf ./browser/metro ./addon-sdk/source/doc/static-files/media ./browser/themes/windows ./browser/themes/osx ./b2g @@ -214,11 +214,6 @@ sed '/description.*helpus/,/description/d' -i ./browser/base/content/aboutDialog find -wholename '*/brand.dtd' |xargs /bin/sed 's/trademarkInfo.part1.*/trademarkInfo.part1 "">/' -i -for STRING in rights.intro-point3-unbranded rights.intro-point4a-unbranded rights.intro-point4b-unbranded rights.intro-point4c-unbranded - do - find -name aboutRights.dtd | xargs sed -i "s/ENTITY $STRING.*/ENTITY $STRING \"\">/" -done - for STRING in rights-intro-point-2 rights-intro-point-3 rights-intro-point-4 rights-intro-point-5 rights-intro-point-6 rights-webservices rights-safebrowsing do find -name aboutRights.ftl | xargs sed -i "s/^$STRING.*/$STRING = /" @@ -234,20 +229,17 @@ sed -i 's/<a\ href\=\"http\:\/\/www.mozilla.org\/\">Mozilla\ Project<\/a>/<a\ hr # We went too far... #sed -i 's/iceweasel, abrowser, icecat,/iceweasel, firefox, icecat,/g' debian/control.in sed '/Provides/s/abrowser-locale/firefox-locale/' -i debian/control.langpacks -/bin/sed '/intro-point2-a/s/Abrowser/Firefox/' -i l10n/*/toolkit/chrome/global/aboutRights.dtd /bin/sed '/trademarkInfo/s/Abrowser/Firefox/' -i l10n/*/browser/branding/official/brand.ftl /bin/sed 's/prefs_snippets_description=.*/prefs_snippets_description=Mozilla snippets/' -i l10n/*/browser/chrome/browser/activity-stream/newtab.properties -# Set migrator scripts -#sed 's/Abrowser/Firefox/g; s/abrowser/firefox/g' -i browser/components/migration/FirefoxProfileMigrator.js -#sed s/ChromeProfileMigrator/_temp_/ -i browser/components/migration/moz.build -#sed s/AbrowserProfileMigrator/ChromeProfileMigrator/ -i browser/components/migration/moz.build -#sed s/_temp_/AbrowserProfileMigrator/ -i browser/components/migration/moz.build - # js settings cat $DATA/settings.js >> debian/vendor-firefox.js +# set contentblocking to strict by default +patch -p1 < $DATA/default-strict.patch +#sed '/this._trackSlowStartup/s/$/\n\n if (! Services.prefs.prefHasUserValue("browser.contentblocking.category")) { Services.prefs.setStringPref("browser.contentblocking.category", "strict"); this._updateCBCategory; }/' -i ./browser/components/BrowserGlue.jsm + ################# # Android stuff # ################# @@ -291,7 +283,7 @@ rm mobile/android/branding/{official,unofficial,beta,nightly} -rf cp -a $DATA/android/branding/ mobile/android/branding/official cp $DATA/android/mobile.ico mobile/android/app/ cp $DATA/android/images/* mobile/android/themes/core/images/ -cp -a $DATA/android/res/main/* mobile/android/app/src/main/res/ +cp -a $DATA/android/res/main/* mobile/android/geckoview/src/main/res # Postinst script to manage profile migration and system links echo '