Bug 1403077 - add a initial stylo blocklist file which ships with the release.
This patch adds a initial stylo blocklist file that will ship with releases.
This file will be used before the first sync with Kinto server and it is
beneficial for reducing the traffic loading for the first sync.
MozReview-Commit-ID: BKG5eKWXm9H
--- a/services/blocklists/moz.build
+++ b/services/blocklists/moz.build
@@ -5,14 +5,15 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
with Files('**'):
BUG_COMPONENT = ('Toolkit', 'Blocklisting')
FINAL_TARGET_FILES.defaults.blocklists += ['addons.json',
'certificates.json',
'gfx.json',
- 'plugins.json']
+ 'plugins.json',
+ 'stylo.json']
FINAL_TARGET_FILES.defaults.pinning += ['pins.json']
if CONFIG['MOZ_BUILD_APP'] == 'browser':
DIST_SUBDIR = 'browser'
--- a/services/blocklists/readme.md
+++ b/services/blocklists/readme.md
@@ -15,15 +15,16 @@ are the commands to update them:
```
SERVICE_URL="https://firefox.settings.services.mozilla.com/v1"
curl "$SERVICE_URL/buckets/blocklists/collections/certificates/records?" > services/blocklists/certificates.json
curl "$SERVICE_URL/buckets/blocklists/collections/gfx/records?" > services/blocklists/gfx.json
curl "$SERVICE_URL/buckets/blocklists/collections/plugins/records?" > services/blocklists/plugins.json
curl "$SERVICE_URL/buckets/blocklists/collections/addons/records?" > services/blocklists/addons.json
+curl "$SERVICE_URL/buckets/blocklists/collections/stylo/records?" > services/blocklists/stylo.json
curl "$SERVICE_URL/buckets/pinning/collections/pins/records?" > services/blocklists/pins.json
```
## TODO
- Setup a bot to update it regularly.
new file mode 100644
--- /dev/null
+++ b/services/blocklists/stylo.json
@@ -0,0 +1,1 @@
+{"data":[]}