Bug 1336208 - Part 4: Add a initial fonts list file which ships with the release. draft
authorTim Huang <tihuang@mozilla.com>
Wed, 23 Aug 2017 16:57:16 +0800
changeset 707552 9dd463e88bc34a71bff0a2d931e4b60e41b42070
parent 707551 09b887290a860055e22c9cfd31f0f9dbca2057d2
child 707553 ffe88f9dac5cb0644e4e6efd807c18b0c74b2b2c
child 709686 52d4bf5999860be1e6565404e46ce45f16f0e68c
child 709689 5c32d32858e6734605a4ccaba8d9f995d186dd8e
child 709706 10d799ec4a1d8e9c319ea3bfd17998182f021d45
child 710228 fb14402dfad0d86b7529c6452793a0bfe7860212
push id92156
push userbmo:tihuang@mozilla.com
push dateTue, 05 Dec 2017 14:33:57 +0000
bugs1336208
milestone59.0a1
Bug 1336208 - Part 4: Add a initial fonts list file which ships with the release. This patch adds a initial fonts 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: 6NQGTkoONRc
browser/installer/package-manifest.in
toolkit/components/resistfingerprinting/fonts.json
toolkit/components/resistfingerprinting/moz.build
--- a/browser/installer/package-manifest.in
+++ b/browser/installer/package-manifest.in
@@ -652,16 +652,17 @@
 ; All the pref files must be part of base to prevent migration bugs
 @RESPATH@/browser/@PREF_DIR@/firefox.js
 @RESPATH@/browser/@PREF_DIR@/firefox-branding.js
 @RESPATH@/greprefs.js
 @RESPATH@/defaults/autoconfig/prefcalls.js
 @RESPATH@/browser/defaults/permissions
 @RESPATH@/browser/defaults/blocklists
 @RESPATH@/browser/defaults/pinning
+@RESPATH@/browser/defaults/fingerprinting-defenses
 
 ; Warning: changing the path to channel-prefs.js can cause bugs (Bug 756325)
 ; Technically this is an app pref file, but we are keeping it in the original
 ; gre location for now.
 @RESPATH@/defaults/pref/channel-prefs.js
 
 ; Remote control protocol prefs
 ; defined in ../../testing/marionette/prefs/marionette.js
new file mode 100644
--- /dev/null
+++ b/toolkit/components/resistfingerprinting/fonts.json
@@ -0,0 +1,1 @@
+{"data":[]}
--- a/toolkit/components/resistfingerprinting/moz.build
+++ b/toolkit/components/resistfingerprinting/moz.build
@@ -5,11 +5,16 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 UNIFIED_SOURCES += [
     'nsRFPService.cpp',
 ]
 
 FINAL_LIBRARY = 'xul'
 
+FINAL_TARGET_FILES.defaults['fingerprinting-defenses'] += ['fonts.json']
+
+if CONFIG['MOZ_BUILD_APP'] == 'browser':
+    DIST_SUBDIR = 'browser'
+
 EXPORTS += [
     'nsRFPService.h',
 ]