Bug 1403077 - add a initial stylo blocklist file which ships with the release. draft
authorJeremy Chen <jeremychen@mozilla.com>
Wed, 27 Sep 2017 17:44:53 +0800
changeset 674041 820e929b95cb286f9c93ffa7f25db7c1491e517b
parent 674040 d85ee01f191e0020312b6b2d2a95afc38d028ec7
child 674042 698c71a75652be7cefae275c79c4a5afd2d9cf39
push id82708
push userbmo:jeremychen@mozilla.com
push dateTue, 03 Oct 2017 04:09:11 +0000
bugs1403077
milestone58.0a1
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
services/blocklists/moz.build
services/blocklists/readme.md
services/blocklists/stylo.json
--- 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":[]}