summaryrefslogtreecommitdiffstats
path: root/browser/modules/AboutHome.jsm
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-04-06 14:07:27 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-04-06 14:07:27 +0200
commit3a17b713ef27abb8c9d7c116815d3af7e0f366d9 (patch)
treed7ad0ed28978271e3af34731ab187415fda62ec3 /browser/modules/AboutHome.jsm
parentd960419686462067cb5745dcd1ad264abe0b1485 (diff)
downloadUXP-3a17b713ef27abb8c9d7c116815d3af7e0f366d9.tar
UXP-3a17b713ef27abb8c9d7c116815d3af7e0f366d9.tar.gz
UXP-3a17b713ef27abb8c9d7c116815d3af7e0f366d9.tar.lz
UXP-3a17b713ef27abb8c9d7c116815d3af7e0f366d9.tar.xz
UXP-3a17b713ef27abb8c9d7c116815d3af7e0f366d9.zip
Remove about:home snippets.
Diffstat (limited to 'browser/modules/AboutHome.jsm')
-rw-r--r--browser/modules/AboutHome.jsm25
1 files changed, 3 insertions, 22 deletions
diff --git a/browser/modules/AboutHome.jsm b/browser/modules/AboutHome.jsm
index 01cbafba9..8c0fc4c15 100644
--- a/browser/modules/AboutHome.jsm
+++ b/browser/modules/AboutHome.jsm
@@ -24,17 +24,10 @@ XPCOMUtils.defineLazyModuleGetter(this, "PrivateBrowsingUtils",
XPCOMUtils.defineLazyModuleGetter(this, "Promise",
"resource://gre/modules/Promise.jsm");
-// Url to fetch snippets, in the urlFormatter service format.
-const SNIPPETS_URL_PREF = "browser.aboutHomeSnippets.updateUrl";
-
-// Should be bumped up if the snippets content format changes.
-const STARTPAGE_VERSION = 4;
+// Should be bumped up if any data content format changes.
+const STARTPAGE_VERSION = 5;
this.AboutHomeUtils = {
- get snippetsVersion() {
- return STARTPAGE_VERSION;
- },
-
/*
* showKnowYourRights - Determines if the user should be shown the
* about:rights notification. The notification should *not* be shown if
@@ -77,16 +70,6 @@ this.AboutHomeUtils = {
};
/**
- * Returns the URL to fetch snippets from, in the urlFormatter service format.
- */
-XPCOMUtils.defineLazyGetter(AboutHomeUtils, "snippetsURL", function() {
- let updateURL = Services.prefs
- .getCharPref(SNIPPETS_URL_PREF)
- .replace("%STARTPAGE_VERSION%", STARTPAGE_VERSION);
- return Services.urlFormatter.formatURL(updateURL);
-});
-
-/**
* This code provides services to the about:home page. Whenever
* about:home needs to do something chrome-privileged, it sends a
* message that's handled here.
@@ -169,9 +152,7 @@ var AboutHome = {
ss.promiseInitialized.then(function() {
let data = {
showRestoreLastSession: ss.canRestoreLastSession,
- snippetsURL: AboutHomeUtils.snippetsURL,
- showKnowYourRights: AboutHomeUtils.showKnowYourRights,
- snippetsVersion: AboutHomeUtils.snippetsVersion,
+ showKnowYourRights: AboutHomeUtils.showKnowYourRights
};
if (AboutHomeUtils.showKnowYourRights) {