From 93c80b924e4c22ec0465608c5020bc66336f9a61 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Wed, 24 Jan 2018 18:20:56 -0500
Subject: [PATCH] More polish to activity-streams on Abrowser

---
 .../firefox/disable-activity-streams.patch    | 51 ++++++++++++++++---
 helpers/make-firefox                          |  2 +-
 2 files changed, 44 insertions(+), 9 deletions(-)

diff --git a/helpers/DATA/firefox/disable-activity-streams.patch b/helpers/DATA/firefox/disable-activity-streams.patch
index ec88e836..4e1af7c1 100644
--- a/helpers/DATA/firefox/disable-activity-streams.patch
+++ b/helpers/DATA/firefox/disable-activity-streams.patch
@@ -1,6 +1,6 @@
 diff -ru firefox-58.0+build6.orig/browser/extensions/activity-stream/lib/ActivityStream.jsm firefox-58.0+build6/browser/extensions/activity-stream/lib/ActivityStream.jsm
 --- firefox-58.0+build6.orig/browser/extensions/activity-stream/lib/ActivityStream.jsm	2018-01-22 17:33:33.000000000 +0000
-+++ firefox-58.0+build6/browser/extensions/activity-stream/lib/ActivityStream.jsm	2018-01-24 16:00:23.580412017 +0000
++++ firefox-58.0+build6/browser/extensions/activity-stream/lib/ActivityStream.jsm	2018-01-24 23:19:12.842155717 +0000
 @@ -26,14 +26,7 @@
  
  const DEFAULT_SITES = new Map([
@@ -17,7 +17,7 @@ diff -ru firefox-58.0+build6.orig/browser/extensions/activity-stream/lib/Activit
  ]);
  const GEO_PREF = "browser.search.region";
  const REASON_ADDON_UNINSTALL = 6;
-@@ -60,12 +53,12 @@
+@@ -60,19 +53,19 @@
        provider_description: "pocket_description",
        provider_icon: "pocket",
        provider_name: "Pocket",
@@ -36,7 +36,15 @@ diff -ru firefox-58.0+build6.orig/browser/extensions/activity-stream/lib/Activit
        show_spocs: false,
        personalized: true
      })
-@@ -100,11 +93,11 @@
+   }],
+   ["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.",
+@@ -100,7 +93,7 @@
    }],
    ["disableSnippets", {
      title: "Disable snippets on activity stream",
@@ -45,12 +53,39 @@ diff -ru firefox-58.0+build6.orig/browser/extensions/activity-stream/lib/Activit
    }],
    ["showTopSites", {
      title: "Show the Top Sites section",
--    value: true
-+    value: false
+@@ -116,12 +109,12 @@
+   }],
+   ["telemetry", {
+     title: "Enable system error and usage data collection",
+-    value: true,
++    value: false,
+     value_local_dev: false
    }],
-   ["collapseTopSites", {
-     title: "Collapse the Top Sites section",
-@@ -197,7 +190,7 @@
+   ["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",
+@@ -137,7 +130,7 @@
+   }],
+   ["tippyTop.service.endpoint", {
+     title: "Tippy Top service manifest url",
+-    value: "https://activity-stream-icons.services.mozilla.com/v1/icons.json.br"
++    value: "https://127.0.0.1"
+   }]
+ ]);
+ 
+@@ -190,14 +183,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",
diff --git a/helpers/make-firefox b/helpers/make-firefox
index 557722d9..d31d625c 100644
--- a/helpers/make-firefox
+++ b/helpers/make-firefox
@@ -18,7 +18,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=53
+VERSION=54
 
 . ./config
 
-- 
GitLab