disable-sensors-access-site-setting-by-default.patch 1.1 KB

1234567891011121314151617181920212223
  1. From: Daniel Micay <danielmicay@gmail.com>
  2. Date: Sun, 16 Jun 2019 15:57:29 -0400
  3. Subject: disable sensors access site setting by default
  4. ---
  5. .../content_settings/core/browser/content_settings_registry.cc | 2 +-
  6. 1 file changed, 1 insertion(+), 1 deletion(-)
  7. diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc
  8. --- a/components/content_settings/core/browser/content_settings_registry.cc
  9. +++ b/components/content_settings/core/browser/content_settings_registry.cc
  10. @@ -412,7 +412,7 @@ void ContentSettingsRegistry::Init() {
  11. // TODO(crbug.com/904439): Update this to "SECURE_ONLY" once
  12. // DeviceOrientationEvents and DeviceMotionEvents are only fired in secure
  13. // contexts.
  14. - Register(ContentSettingsType::SENSORS, "sensors", CONTENT_SETTING_ALLOW,
  15. + Register(ContentSettingsType::SENSORS, "sensors", CONTENT_SETTING_BLOCK,
  16. WebsiteSettingsInfo::UNSYNCABLE, WhitelistedSchemes(),
  17. ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK),
  18. WebsiteSettingsInfo::SINGLE_ORIGIN_ONLY_SCOPE,
  19. --
  20. 2.17.1