Bug 1495304 - Remove unsupported feature policies, r=ckerschb
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 02 Oct 2018 11:55:11 +0200
changeset 494900 902c00aa8bbeec7bf28df9785b20062f8cba278b
parent 494899 f7d61c61aa340208b4dc64f6b71fac2683750461
child 494901 2a4364e194c593caf63aa1aadc221d9f7ee551af
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersckerschb
bugs1495304
milestone64.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 1495304 - Remove unsupported feature policies, r=ckerschb
dom/security/featurepolicy/FeaturePolicyUtils.cpp
--- a/dom/security/featurepolicy/FeaturePolicyUtils.cpp
+++ b/dom/security/featurepolicy/FeaturePolicyUtils.cpp
@@ -21,44 +21,32 @@ struct FeatureMap {
 };
 
 /*
  * IMPORTANT: Do not change this list without review from a DOM peer _AND_ a
  * DOM Security peer!
  */
 static FeatureMap sSupportedFeatures[] = {
   // TODO: not supported yet!!!
-  { "accelerometer", FeatureMap::eSelf },
-  // TODO: not supported yet!!!
-  { "ambient-light-sensor", FeatureMap::eSelf },
-  // TODO: not supported yet!!!
   { "autoplay", FeatureMap::eSelf },
   // TODO: not supported yet!!!
   { "camera", FeatureMap::eSelf  },
   // TODO: not supported yet!!!
   { "encrypted-media", FeatureMap::eSelf  },
   // TODO: not supported yet!!!
   { "fullscreen", FeatureMap::eSelf  },
   // TODO: not supported yet!!!
   { "geolocation", FeatureMap::eSelf  },
   // TODO: not supported yet!!!
-  { "gyroscope", FeatureMap::eSelf  },
-  // TODO: not supported yet!!!
-  { "magnetometer", FeatureMap::eSelf  },
-  // TODO: not supported yet!!!
   { "microphone", FeatureMap::eSelf  },
   { "midi", FeatureMap::eSelf  },
   { "payment", FeatureMap::eSelf  },
   // TODO: not supported yet!!!
-  { "picture-in-picture", FeatureMap::eAll  },
-  // TODO: not supported yet!!!
   { "speaker", FeatureMap::eSelf  },
   // TODO: not supported yet!!!
-  { "usb", FeatureMap::eSelf  },
-  // TODO: not supported yet!!!
   { "vr", FeatureMap::eSelf  },
 };
 
 /* static */ bool
 FeaturePolicyUtils::IsSupportedFeature(const nsAString& aFeatureName)
 {
   uint32_t numFeatures = (sizeof(sSupportedFeatures) / sizeof(sSupportedFeatures[0]));
   for (uint32_t i = 0; i < numFeatures; ++i) {