From 57763bb6b1cad24b91b89ceba44fd21ff82ee2c9 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Thu, 19 Dec 2019 21:03:21 -0500
Subject: [PATCH] Abrowser updated for v71

---
 helpers/DATA/firefox/branding/LICENSE         |   3 -
 helpers/DATA/firefox/branding/branding.nsi    |  52 ----------
 helpers/DATA/firefox/branding/configure.sh    |   5 -
 helpers/DATA/firefox/branding/content/jar.mn  |  17 ----
 .../DATA/firefox/branding/content/moz.build   |   7 --
 helpers/DATA/firefox/branding/dsstore         | Bin 12292 -> 0 bytes
 .../firefox.VisualElementsManifest.xml        |   8 --
 .../branding/locales/browserconfig.properties |   6 --
 .../firefox/branding/locales/en-US/brand.dtd  |   9 --
 .../firefox/branding/locales/en-US/brand.ftl  |   5 -
 .../branding/locales/en-US/brand.properties   |  10 --
 helpers/DATA/firefox/branding/locales/jar.mn  |  13 ---
 .../DATA/firefox/branding/locales/moz.build   |   7 --
 helpers/DATA/firefox/branding/moz.build       |  13 ---
 .../firefox/branding/pref/firefox-branding.js |  37 -------
 helpers/DATA/firefox/default-strict.patch     |  22 ++++
 helpers/DATA/firefox/settings.js              |  17 ++--
 helpers/make-firefox                          |  94 ++++++++----------
 18 files changed, 73 insertions(+), 252 deletions(-)
 delete mode 100644 helpers/DATA/firefox/branding/LICENSE
 delete mode 100644 helpers/DATA/firefox/branding/branding.nsi
 delete mode 100644 helpers/DATA/firefox/branding/configure.sh
 delete mode 100644 helpers/DATA/firefox/branding/content/jar.mn
 delete mode 100644 helpers/DATA/firefox/branding/content/moz.build
 delete mode 100644 helpers/DATA/firefox/branding/dsstore
 delete mode 100644 helpers/DATA/firefox/branding/firefox.VisualElementsManifest.xml
 delete mode 100644 helpers/DATA/firefox/branding/locales/browserconfig.properties
 delete mode 100644 helpers/DATA/firefox/branding/locales/en-US/brand.dtd
 delete mode 100644 helpers/DATA/firefox/branding/locales/en-US/brand.ftl
 delete mode 100644 helpers/DATA/firefox/branding/locales/en-US/brand.properties
 delete mode 100644 helpers/DATA/firefox/branding/locales/jar.mn
 delete mode 100644 helpers/DATA/firefox/branding/locales/moz.build
 delete mode 100644 helpers/DATA/firefox/branding/moz.build
 delete mode 100644 helpers/DATA/firefox/branding/pref/firefox-branding.js
 create mode 100644 helpers/DATA/firefox/default-strict.patch

diff --git a/helpers/DATA/firefox/branding/LICENSE b/helpers/DATA/firefox/branding/LICENSE
deleted file mode 100644
index 41dc2327f..000000000
--- 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 413390cf5..000000000
--- 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 fc8715968..000000000
--- 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 40e013ec5..000000000
--- 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 eb4454d28..000000000
--- 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
GIT binary patch
literal 0
HcmV?d00001

literal 12292
zcmeHNO>7(25uTOhn6hPw`f+17iOW=JYCD#=6h(@p3YelP+d?7Rt>{0*j=bb9$&E=a
zORgx{u3H7@A<d~sYuHDlr{t0z+@dy86h0JafW$x#Mo$6iv;|rNMPt+#ABwi$?0ZX6
zl$_W_fb?fan4NilGw;p3_hxn}B2rR|dWdKj5&3{j{ac6v!0o_x;C99}umLp+a0m$A
zPpNa+l9eUe_+i#s)7z`?EZ|wdvw&v-&jOwW{u3;~u^Zs)i1(t_dwLe|EbxDA0lpss
zK&DAaR|Ivg4m`S0<o0f+4B-8e1|&^Nx+17E6#bl`pkk;ZUojLh9Q6V24w{s7MNl!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X2Om^zlB{??`mi
zvMn}X?bmR0`7p3t=Q;z=uHv$|*u=cJ?A~xrnul`hqNAqmJ8wL;9oxQ&{wu&A0Ivam
z3Ut@I`xZI@-144VPO(`I^ze&XtNo4ZS5}qhZi=$2>(7w=kmY0T+kv})?Y6vw(at4^
zKJ8(|)lX-CJYh?Hjvs$kQtzVd+Fy;1&m1_QrbeR^q3O}EIvpNO#b;upq4D@+EIl2a
zQ6nMO{;y#i+r88NQ0>?_2<rNR1N0592URB~@*!OxkL!`B77yiOc|8{m>)DVI%^KOs
zd?X)Mqw$zF#UC~pnv5upt5Z3vJf>BvC4--%b%eyMwLDfcG<|fbX4-~3A~dCjoIw+A
z4NCFJY<xnW3NCVF4c48&8qCVL+8*Lso4`pF-opGjGVs1);Foxg3?J}<0UQ}(SRX@Y
zWXQ;Rjs|~p`+(OaKLGx!<T)BFOP-^_>yi(E|CQub@b^hTX9W1W?1SkDKXiOY%b=du
z!2*7PbHZohvzk}a-;mwpA>ZZMRPJ8Bi^{(MA4<ynb+q#y39EYCh{s})h^Fh=Xf~VG
zqoHsp7mb9m5#wPaABj$?lP$Nl`IjC3@9dFihYT<N!x<ikAObt=;=nwEvkki5|NnWW
z@+{z4;D6WxN_Tobox%cTz+bae4!i;2Ss(-VTM^V5f`=2EK@sbmb|-m5S>-YV_@tyO
qf}#fS`TQfmK;X&p5?&VP-ke)Bc@$lq*W$&07{Po0XCwR<z`p?0u;yC;

diff --git a/helpers/DATA/firefox/branding/firefox.VisualElementsManifest.xml b/helpers/DATA/firefox/branding/firefox.VisualElementsManifest.xml
deleted file mode 100644
index 16e932c60..000000000
--- 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 06cefece3..000000000
--- 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 2ca349aba..000000000
--- 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 b575440ea..000000000
--- 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 c1a789910..000000000
--- 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 c78c82947..000000000
--- 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 eb4454d28..000000000
--- 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 9045cee11..000000000
--- 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 126f22282..000000000
--- 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 000000000..45e70bd57
--- /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 def349c82..de68b7d45 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 013e19fa4..61b9364ea 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 '
-- 
GitLab