Bug 1499791 - Remove extra spaces in FeaturePolicyUtils.cpp, r=me
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 17 Oct 2018 19:22:59 +0200
changeset 490034 4f6373f7b21155fadc01fbb03d8a4d1f3f3a1f2e
parent 490033 dce4f5d77296ddf754487066686ef789952fdb47
child 490035 31175b7c468b1f8f8589728f8a29d433e1594cd6
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersme
bugs1499791
milestone64.0a1
Bug 1499791 - Remove extra spaces in FeaturePolicyUtils.cpp, r=me
dom/security/featurepolicy/FeaturePolicyUtils.cpp
--- a/dom/security/featurepolicy/FeaturePolicyUtils.cpp
+++ b/dom/security/featurepolicy/FeaturePolicyUtils.cpp
@@ -18,26 +18,26 @@ struct FeatureMap {
 };
 
 /*
  * IMPORTANT: Do not change this list without review from a DOM peer _AND_ a
  * DOM Security peer!
  */
 static FeatureMap sSupportedFeatures[] = {
   { "autoplay", FeaturePolicyUtils::FeaturePolicyValue::eAll },
-  { "camera", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
-  { "encrypted-media", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
-  { "fullscreen", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
-  { "geolocation", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
-  { "microphone", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
-  { "midi", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
-  { "payment", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
+  { "camera", FeaturePolicyUtils::FeaturePolicyValue::eAll },
+  { "encrypted-media", FeaturePolicyUtils::FeaturePolicyValue::eAll },
+  { "fullscreen", FeaturePolicyUtils::FeaturePolicyValue::eAll },
+  { "geolocation", FeaturePolicyUtils::FeaturePolicyValue::eAll },
+  { "microphone", FeaturePolicyUtils::FeaturePolicyValue::eAll },
+  { "midi", FeaturePolicyUtils::FeaturePolicyValue::eAll },
+  { "payment", FeaturePolicyUtils::FeaturePolicyValue::eAll },
   // TODO: not supported yet!!!
-  { "speaker", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
-  { "vr", FeaturePolicyUtils::FeaturePolicyValue::eAll  },
+  { "speaker", FeaturePolicyUtils::FeaturePolicyValue::eAll },
+  { "vr", FeaturePolicyUtils::FeaturePolicyValue::eAll },
 };
 
 /* static */ bool
 FeaturePolicyUtils::IsSupportedFeature(const nsAString& aFeatureName)
 {
   uint32_t numFeatures = (sizeof(sSupportedFeatures) / sizeof(sSupportedFeatures[0]));
   for (uint32_t i = 0; i < numFeatures; ++i) {
     if (aFeatureName.LowerCaseEqualsASCII(sSupportedFeatures[i].mFeatureName)) {