diff --git a/helpers/DATA/firefox/branding/VisualElements_150.png b/helpers/DATA/firefox/branding/VisualElements_150.png new file mode 100644 index 0000000..e8a1572 Binary files /dev/null and b/helpers/DATA/firefox/branding/VisualElements_150.png differ diff --git a/helpers/DATA/firefox/branding/VisualElements_70.png b/helpers/DATA/firefox/branding/VisualElements_70.png new file mode 100644 index 0000000..efc4614 Binary files /dev/null and b/helpers/DATA/firefox/branding/VisualElements_70.png differ diff --git a/helpers/DATA/firefox/branding/abrowser.VisualElementsManifest.xml b/helpers/DATA/firefox/branding/abrowser.VisualElementsManifest.xml new file mode 100644 index 0000000..16e932c --- /dev/null +++ b/helpers/DATA/firefox/branding/abrowser.VisualElementsManifest.xml @@ -0,0 +1,8 @@ + + + diff --git a/helpers/DATA/firefox/branding/abrowser64.ico b/helpers/DATA/firefox/branding/abrowser64.ico new file mode 100644 index 0000000..cc56125 Binary files /dev/null and b/helpers/DATA/firefox/branding/abrowser64.ico differ diff --git a/helpers/DATA/firefox/branding/appname.bmp b/helpers/DATA/firefox/branding/appname.bmp deleted file mode 100644 index cbad0d1..0000000 Binary files a/helpers/DATA/firefox/branding/appname.bmp and /dev/null differ diff --git a/helpers/DATA/firefox/branding/bgintro.bmp b/helpers/DATA/firefox/branding/bgintro.bmp deleted file mode 100644 index dc5240c..0000000 Binary files a/helpers/DATA/firefox/branding/bgintro.bmp and /dev/null differ diff --git a/helpers/DATA/firefox/branding/bgstub.jpg b/helpers/DATA/firefox/branding/bgstub.jpg new file mode 100644 index 0000000..ffeb276 Binary files /dev/null and b/helpers/DATA/firefox/branding/bgstub.jpg differ diff --git a/helpers/DATA/firefox/branding/bgstub_2x.jpg b/helpers/DATA/firefox/branding/bgstub_2x.jpg new file mode 100644 index 0000000..7d58e5a Binary files /dev/null and b/helpers/DATA/firefox/branding/bgstub_2x.jpg differ diff --git a/helpers/DATA/firefox/branding/branding.nsi b/helpers/DATA/firefox/branding/branding.nsi index 5e30876..413390c 100644 --- a/helpers/DATA/firefox/branding/branding.nsi +++ b/helpers/DATA/firefox/branding/branding.nsi @@ -9,23 +9,25 @@ # 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" -!define URLStubDownload "http://trisquel.info/browser" -!define URLManualDownload "http://trisquel.info/browser" - ; 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 Assured ID Code Signing CA-1" +!define CertIssuerDownload "DigiCert SHA2 Assured ID Code Signing CA" # Dialog units are used so the UI displays correctly with the system's DPI # settings. diff --git a/helpers/DATA/firefox/branding/clock.bmp b/helpers/DATA/firefox/branding/clock.bmp deleted file mode 100644 index c74398e..0000000 Binary files a/helpers/DATA/firefox/branding/clock.bmp and /dev/null differ diff --git a/helpers/DATA/firefox/branding/content/about-logo.png b/helpers/DATA/firefox/branding/content/about-logo.png index b518914..f350a6e 100644 Binary files a/helpers/DATA/firefox/branding/content/about-logo.png and b/helpers/DATA/firefox/branding/content/about-logo.png differ diff --git a/helpers/DATA/firefox/branding/content/aboutDialog.css b/helpers/DATA/firefox/branding/content/aboutDialog.css index e4f70e3..6312a59 100644 --- a/helpers/DATA/firefox/branding/content/aboutDialog.css +++ b/helpers/DATA/firefox/branding/content/aboutDialog.css @@ -2,20 +2,25 @@ * 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/. */ +#aboutDialogContainer { + background-color: #202340; + color: #fff; +} + #clientBox { - background-color: #F7F7F7; - color: #222222; + padding: 10px 0 15px; } #leftBox { background-image: url("chrome://branding/content/about-logo.png"); background-repeat: no-repeat; background-size: 192px auto; + background-position: center 20%; /* min-width and min-height create room for the logo */ min-width: 210px; min-height: 210px; margin-top: 20px; - -moz-margin-start: 30px; + margin-inline-start: 30px; } @@ -25,14 +30,23 @@ } } +.text-link { + color: #fff !important; + text-decoration: underline; +} + +.text-link:-moz-focusring { + border-color: #fff; +} + #rightBox { margin-left: 30px; margin-right: 30px; - min-width: 300px; } -#updateDeck > hbox > label:not([class="text-link"]) { - color: #909090; +#bottomBox { + background-color: hsla(235, 43%, 10%, .5); + padding: 15px 10px 15px; } #trademark { @@ -42,4 +56,3 @@ margin-top: 10px; margin-bottom: 10px; } - diff --git a/helpers/DATA/firefox/branding/content/icon48.png b/helpers/DATA/firefox/branding/content/icon48.png deleted file mode 100644 index 5fc7861..0000000 Binary files a/helpers/DATA/firefox/branding/content/icon48.png and /dev/null differ diff --git a/helpers/DATA/firefox/branding/content/icon64.png b/helpers/DATA/firefox/branding/content/icon64.png deleted file mode 100644 index 83f7016..0000000 Binary files a/helpers/DATA/firefox/branding/content/icon64.png and /dev/null differ diff --git a/helpers/DATA/firefox/branding/content/jar.mn b/helpers/DATA/firefox/branding/content/jar.mn index bdc1df6..40e013e 100644 --- a/helpers/DATA/firefox/branding/content/jar.mn +++ b/helpers/DATA/firefox/branding/content/jar.mn @@ -8,11 +8,10 @@ browser.jar: content/branding/about-logo.png content/branding/about-logo@2x.png content/branding/about-wordmark.svg - content/branding/icon48.png - content/branding/icon64.png content/branding/icon16.png (../default16.png) content/branding/icon32.png (../default32.png) - content/branding/icon128.png (../mozicon128.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/silhouette-40.svg content/branding/aboutDialog.css diff --git a/helpers/DATA/firefox/branding/content/moz.build b/helpers/DATA/firefox/branding/content/moz.build index c97072b..eb4454d 100644 --- a/helpers/DATA/firefox/branding/content/moz.build +++ b/helpers/DATA/firefox/branding/content/moz.build @@ -1,4 +1,4 @@ -# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# -*- 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 diff --git a/helpers/DATA/firefox/branding/content/silhouette-40.svg b/helpers/DATA/firefox/branding/content/silhouette-40.svg deleted file mode 100644 index bef6045..0000000 --- a/helpers/DATA/firefox/branding/content/silhouette-40.svg +++ /dev/null @@ -1,1359 +0,0 @@ - - - - diff --git a/helpers/DATA/firefox/branding/locales/en-US/brand.ftl b/helpers/DATA/firefox/branding/locales/en-US/brand.ftl new file mode 100644 index 0000000..b575440 --- /dev/null +++ b/helpers/DATA/firefox/branding/locales/en-US/brand.ftl @@ -0,0 +1,5 @@ +# 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 index ca39ed6..c1a7899 100644 --- a/helpers/DATA/firefox/branding/locales/en-US/brand.properties +++ b/helpers/DATA/firefox/branding/locales/en-US/brand.properties @@ -7,10 +7,4 @@ brandShortName=Abrowser brandFullName=Abrowser vendorShortName=Trisquel -homePageSingleStartMain=Abrowser Start, a fast home page with built-in search -homePageImport=Import your home page from %S - -homePageMigrationPageTitle=Home Page Selection -homePageMigrationDescription=Please select the home page you wish to use: - syncBrandShortName=Sync diff --git a/helpers/DATA/firefox/branding/locales/jar.mn b/helpers/DATA/firefox/branding/locales/jar.mn index 9fdfe57..c78c829 100644 --- a/helpers/DATA/firefox/branding/locales/jar.mn +++ b/helpers/DATA/firefox/branding/locales/jar.mn @@ -3,6 +3,8 @@ # 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/ diff --git a/helpers/DATA/firefox/branding/locales/moz.build b/helpers/DATA/firefox/branding/locales/moz.build index c97072b..eb4454d 100644 --- a/helpers/DATA/firefox/branding/locales/moz.build +++ b/helpers/DATA/firefox/branding/locales/moz.build @@ -1,4 +1,4 @@ -# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# -*- 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 diff --git a/helpers/DATA/firefox/branding/moz.build b/helpers/DATA/firefox/branding/moz.build index ba29e9e..fcf65dd 100644 --- a/helpers/DATA/firefox/branding/moz.build +++ b/helpers/DATA/firefox/branding/moz.build @@ -1,4 +1,4 @@ -# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# -*- 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 diff --git a/helpers/DATA/firefox/branding/mozicon128.png b/helpers/DATA/firefox/branding/mozicon128.png deleted file mode 100644 index 9c46237..0000000 Binary files a/helpers/DATA/firefox/branding/mozicon128.png and /dev/null differ diff --git a/helpers/DATA/firefox/branding/particles.bmp b/helpers/DATA/firefox/branding/particles.bmp deleted file mode 100644 index ab74ce0..0000000 Binary files a/helpers/DATA/firefox/branding/particles.bmp and /dev/null differ diff --git a/helpers/DATA/firefox/branding/pencil-rtl.bmp b/helpers/DATA/firefox/branding/pencil-rtl.bmp deleted file mode 100644 index e50d92d..0000000 Binary files a/helpers/DATA/firefox/branding/pencil-rtl.bmp and /dev/null differ diff --git a/helpers/DATA/firefox/branding/pencil.bmp b/helpers/DATA/firefox/branding/pencil.bmp deleted file mode 100644 index 252c10f..0000000 Binary files a/helpers/DATA/firefox/branding/pencil.bmp and /dev/null differ diff --git a/helpers/DATA/firefox/branding/pref/abrowser-branding.js b/helpers/DATA/firefox/branding/pref/abrowser-branding.js index 63b8b52..126f222 100644 --- a/helpers/DATA/firefox/branding/pref/abrowser-branding.js +++ b/helpers/DATA/firefox/branding/pref/abrowser-branding.js @@ -2,27 +2,36 @@ * 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","http://trisquel.info"); -pref("startup.homepage_welcome_url","http://trisquel.info/welcome"); -// The time interval between checks for a new version (in seconds) -// nightly=8 hours, official=24 hours -pref("app.update.interval", 86400); +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) -pref("app.update.download.backgroundInterval", 60); +// 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", "http://trisquel.info/browser"); +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", "http://trisquel.info/browser"); +pref("app.update.url.details", "https://trisquel.info/browser"); -// Release notes and vendor URLs -pref("app.releaseNotesURL", "http://trisquel.info/browser"); pref("app.vendorURL", "http://trisquel.info/browser/"); +pref("app.releaseNotesURL", "https://trisquel.info/browser"); -// Search codes belong only in builds with official branding -pref("browser.search.param.yahoo-fr", ""); -pref("browser.search.param.yahoo-fr-cjkt", ""); // now unused -pref("browser.search.param.yahoo-fr-ja", ""); -pref("browser.search.param.yahoo-f-CN", ""); +// 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/disable-activity-streams.patch b/helpers/DATA/firefox/disable-activity-streams.patch deleted file mode 100644 index 6b8bc74..0000000 --- a/helpers/DATA/firefox/disable-activity-streams.patch +++ /dev/null @@ -1,104 +0,0 @@ ---- a/browser/extensions/activity-stream/lib/ActivityStream.jsm 2018-03-15 21:41:38.000000000 -0400 -+++ b/browser/extensions/activity-stream/lib/ActivityStream.jsm 2018-03-17 01:26:49.040525184 -0400 -@@ -26,14 +26,7 @@ - - const DEFAULT_SITES = new Map([ - // This first item is the global list fallback for any unexpected geos -- ["", "https://www.youtube.com/,https://www.facebook.com/,https://www.wikipedia.org/,https://www.reddit.com/,https://www.amazon.com/,https://twitter.com/"], -- ["US", "https://www.youtube.com/,https://www.facebook.com/,https://www.amazon.com/,https://www.reddit.com/,https://www.wikipedia.org/,https://twitter.com/"], -- ["CA", "https://www.youtube.com/,https://www.facebook.com/,https://www.reddit.com/,https://www.wikipedia.org/,https://www.amazon.ca/,https://twitter.com/"], -- ["DE", "https://www.youtube.com/,https://www.facebook.com/,https://www.amazon.de/,https://www.ebay.de/,https://www.wikipedia.org/,https://www.reddit.com/"], -- ["PL", "https://www.youtube.com/,https://www.facebook.com/,https://allegro.pl/,https://www.wikipedia.org/,https://www.olx.pl/,https://www.wykop.pl/"], -- ["RU", "https://vk.com/,https://www.youtube.com/,https://ok.ru/,https://www.avito.ru/,https://www.aliexpress.com/,https://www.wikipedia.org/"], -- ["GB", "https://www.youtube.com/,https://www.facebook.com/,https://www.reddit.com/,https://www.amazon.co.uk/,https://www.bbc.co.uk/,https://www.ebay.co.uk/"], -- ["FR", "https://www.youtube.com/,https://www.facebook.com/,https://www.wikipedia.org/,https://www.amazon.fr/,https://www.leboncoin.fr/,https://twitter.com/"] -+ [""], - ]); - const GEO_PREF = "browser.search.region"; - const REASON_ADDON_UNINSTALL = 6; -@@ -56,19 +49,19 @@ - provider_description: "pocket_description", - provider_icon: "pocket", - provider_name: "Pocket", -- read_more_endpoint: "https://getpocket.com/explore/trending?src=fx_new_tab", -- stories_endpoint: `https://getpocket.cdn.mozilla.net/v3/firefox/global-recs?version=2&consumer_key=$apiKey&locale_lang=${args.locale}`, -- stories_referrer: "http://getpocket.com/recommendations", -- info_link: "https://www.mozilla.org/privacy/firefox/#pocketstories", -- disclaimer_link: "https://getpocket.com/firefox/new_tab_learn_more.php", -- topics_endpoint: `https://getpocket.cdn.mozilla.net/v3/firefox/trending-topics?version=2&consumer_key=$apiKey&locale_lang=${args.locale}`, -+ read_more_endpoint: "http://127.0.0.1/", -+ stories_endpoint: `http://127.0.0.1/`, -+ stories_referrer: "http://127.0.0.1/", -+ info_link: "http://127.0.0.1/", -+ disclaimer_link: "http://127.0.0.1/", -+ topics_endpoint: `http://127.0.0.1}`, - show_spocs: false, - personalized: true - }) - }], - ["showSponsored", { - title: "Show sponsored cards in spoc experiment (show_spocs in topstories.options has to be set to true as well)", -- value: true -+ value: false - }], - ["filterAdult", { - title: "Remove adult pages from sites, highlights, etc.", -@@ -96,7 +89,7 @@ - }], - ["disableSnippets", { - title: "Disable snippets on activity stream", -- value: false -+ value: true - }], - ["showTopSites", { - title: "Show the Top Sites section", -@@ -112,12 +105,12 @@ - }], - ["telemetry", { - title: "Enable system error and usage data collection", -- value: true, -+ value: false, - value_local_dev: false - }], - ["telemetry.ping.endpoint", { - title: "Telemetry server endpoint", -- value: "https://tiles.services.mozilla.com/v4/links/activity-stream" -+ value: "https://127.0.0.1/" - }], - ["section.highlights.collapsed", { - title: "Collapse the Highlights section", -@@ -133,7 +126,7 @@ - }], - ["tippyTop.service.endpoint", { - title: "Tippy Top service manifest url", -- value: "https://activity-stream-icons.services.mozilla.com/v1/icons.json.br" -+ value: "" - }] - ]); - -@@ -186,14 +179,14 @@ - "CA": ["en-US", "en-GB", "en-ZA"], - "DE": ["de", "de-DE", "de-AT", "de-CH"] - })[geo]; -- return !!locales && locales.includes(locale); -+ return false; - } - }, - { - name: "snippets", - factory: () => new SnippetsFeed(), - title: "Gets snippets data", -- value: true -+ value: false - }, - { - name: "systemtick", -@@ -205,7 +198,7 @@ - name: "telemetry", - factory: () => new TelemetryFeed(), - title: "Relays telemetry-related actions to PingCentre", -- value: true -+ value: false - }, - { - name: "favicon", diff --git a/helpers/make-firefox b/helpers/make-firefox index f1f3e2d..4848084 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -18,13 +18,30 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=56 +VERSION=57 . ./config rm debian/control -patch -p1 < $DATA/disable-activity-streams.patch +# 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 +sed '/^const DEFAULT_SITES/,/^])\;/c const DEFAULT_SITES = new Map\([[""]]\);' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/\["showSponsored/,/value/s/value: true/value: false/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/\["disableSnippets/,/value/s/value: false/value: true/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/\["telemetry"/,/value/s/value: true/value: false/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/\["section.highlights.includePocket"/,/value/s/value: true/value: false/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/\["telemetry.ping.endpoint"/,/value/s/value: .*/value: ""/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/\["tippyTop.service.endpoint"/,/value/s/value: .*/value: ""/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed 's/\(read_more_endpoint:\) .http.*/\1 "",/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed 's/\(stories_endpoint:\) .http.*/\1 "",/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed 's/\(stories_referrer:\) .http.*/\1 "",/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed 's/\(privacy_notice_link:\) .http.*/\1 "https:\/\/trisquel.info\/legal",/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed 's/\(disclaimer_link:\) .http.*/\1 "",/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed 's/\(topics_endpoint:\) .http.*/\1 "",/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/name: "snippets"/,/value/s/value: true/value: false/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/name: "telemetry"/,/value/s/value: true/value: false/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm +sed '/name: "section.topstories"/,/return/s/return.*/return false;/' -i browser/extensions/activity-stream/lib/ActivityStream.jsm sed 's/.Ubuntu., //' -i ./browser/extensions/activity-stream/css/activity-stream*.css cp $DATA/onboarding/bootstrap.js browser/extensions/onboarding @@ -40,34 +57,6 @@ sed '/captivedetect.canonicalURL/s/http.*success.txt//' -i modules/libpref/init/ sed '/ShouldResistFingerprinting/,/}/s/^/\/\//' -i ./netwerk/protocol/http/nsHttpHandler.cpp sed '/If fingerprinting resistance is on/,/}/s/^/\/\//' -i ./dom/base/Navigator.cpp -# Disabled until the patches work on v57 with moz1382323.patch -## KDE integration patches from https://www.rosenauer.org/hg/mozilla -## Use firefox$MAJORVERSION branch if available, otherwise use default -#MAJORVERSION=$(echo `pkgversion` | /bin/sed 's/\([0-9]\+\).*/\1/') -#BRANCH=firefox$MAJORVERSION -#if ! wget --spider https://rosenauer.org/hg/mozilla/log/$BRANCH; then -# BRANCH=default -#fi -#wget https://rosenauer.org/hg/mozilla/raw-file/$BRANCH/mozilla-kde.patch -O debian/patches/mozilla-kde.patch -#wget https://rosenauer.org/hg/mozilla/raw-file/$BRANCH/firefox-kde.patch -O debian/patches/abrowser-kde.patch -# -## Add to series -#cat << EOF >> debian/patches/series -#mozilla-kde.patch -#abrowser-kde.patch -#EOF -# -## Add kde.js file -#echo 'pref("browser.preferences.instantApply", false);' > debian/kde.js -#sed -i '/pre-build/r /dev/stdin' debian/rules << 'EOF' -# mkdir -p $(MOZ_DISTDIR)/bin/defaults/pref -# cp $(CURDIR)/debian/kde.js $(MOZ_DISTDIR)/bin/defaults/pref/kde.js -#EOF -# -## A line is added to widget/gtk/moz.build by unity-menubar.patch, so we have to fix mozilla-kde.patch -#sed -i "/widget\/gtk\/moz\.build/,/widget\/gtk\/nsFilePicker\.cpp/{ /chromium/d; /generic/a\ \ \ \ \ '/layout/style', -#; }" debian/patches/mozilla-kde.patch - # Replace ubufox recommendation sed 's/xul-ext-ubufox/xul-ext-youtube-html5-video-player/' -i debian/control.in @@ -162,7 +151,7 @@ s/abrowser.com/firefox.com/g; " echo "Running batch replace operation" -find . -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir /bin/sed --follow-symlinks -i "$SEDSCRIPT" '{}' ';' +find . -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -not -iregex '.*third_party/rust.*' -execdir /bin/sed --follow-symlinks -i "$SEDSCRIPT" '{}' ';' sed -i '2s/^Source:.*/Source: firefox/' debian/control.in sed s/ubuntu/trisquel/g debian/distribution.ini -i @@ -175,6 +164,8 @@ sed '/Package: @MOZ_PKG_NAME@$/,/Description:/ s/Provides:/Provides: firefox, /' # Branding files rm browser/branding/{official,aurora,nightly,unofficial} -rf cp -a $DATA/branding/ browser/branding/official +# Disable preprocessor +sed 's/_PP//' -i browser/branding/branding-common.mozbuild cat << EOF >> debian/config/branch.mk CHANNEL = release MOZ_WANT_UNIT_TESTS = 0 @@ -206,13 +197,6 @@ for extension in $(ls -1 $DATA/extensions/); do echo "debian/$extension @MOZ_ADDONDIR@/extensions/" >> debian/abrowser.install.in done -# Disable newtab "What is this" popup and config button -cat << EOF >> browser/themes/linux/newtab/newTab.css -#newtab-customize-button, #newtab-intro-what{ -display:none -} -EOF - # Disable search field at extensions panel #sed '/header-search/d; /search.placeholder/d' -i toolkit/mozapps/extensions/content/extensions.xul cat << EOF >> toolkit/mozapps/extensions/content/extensions.css @@ -248,8 +232,6 @@ sed -i 's/Mozilla\ Project<\/a>/