Bug 1383701 - whitelist paymentRequest.xhtml only when building paymentRequest. r=MattN
authorJonathan Guillotte-Blouin <jguillotteblouin@mozilla.com>
Tue, 25 Jul 2017 11:11:30 -0700
changeset 419632 57d0b46a7d4d3945de64bc5d3989c18eba5050f2
parent 419631 7ae1f73aacdb276fdc0d370994ef9e570cb326b7
child 419633 f4d41c4d2246f2cc055ebc718e59ae6512c3f707
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1383701
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1383701 - whitelist paymentRequest.xhtml only when building paymentRequest. r=MattN MozReview-Commit-ID: 4QyhWvXBHMZ
browser/base/content/test/static/browser_all_files_referenced.js
--- a/browser/base/content/test/static/browser_all_files_referenced.js
+++ b/browser/base/content/test/static/browser_all_files_referenced.js
@@ -38,20 +38,16 @@ var whitelist = [
   {file: "chrome://pdf.js/locale/viewer.properties"},
 
   // security/manager/pki/resources/content/device_manager.js
   {file: "chrome://pippki/content/load_device.xul"},
 
   // Used by setting this url as a pref in about:config
   {file: "chrome://browser/content/newtab/alternativeDefaultSites.json"},
 
-  // Temporary whitelisted while WebPayments in construction
-  // See Bug 1381141
-  {file: "chrome://payments/content/paymentRequest.xhtml"},
-
   // Add-on compat
   {file: "chrome://browser/skin/devtools/common.css"},
   {file: "chrome://global/content/XPCNativeWrapper.js"},
   {file: "chrome://global/locale/brand.dtd"},
 
   // The l10n build system can't package string files only for some platforms.
   // See bug 1339424 for why this is hard to fix.
   {file: "chrome://global/locale/fallbackMenubar.properties",
@@ -170,16 +166,24 @@ var whitelist = [
   {file: "resource://gre/modules/Manifest.jsm"},
   // Bug 1351097
   {file: "resource://gre/modules/accessibility/AccessFu.jsm"},
   // Bug 1351637
   {file: "resource://gre/modules/sdk/bootstrap.js"},
 
 ];
 
+// Temporary whitelisted while WebPayments in construction
+// See Bug 1381141
+if (AppConstants.NIGHTLY_BUILD && AppConstants.MOZ_BUILD_APP == "browser") {
+  whitelist.push(
+    {file: "chrome://payments/content/paymentRequest.xhtml"}
+  );
+}
+
 if (!AppConstants.MOZ_PHOTON_THEME) {
   whitelist.push(
     // Bug 1343824
     {file: "chrome://browser/skin/customizableui/customize-illustration-rtl@2x.png",
      platforms: ["linux", "win"]},
     {file: "chrome://browser/skin/customizableui/customize-illustration@2x.png",
      platforms: ["linux", "win"]},
     {file: "chrome://browser/skin/customizableui/info-icon-customizeTip@2x.png",