23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Sun, 16 Jun 2019 15:57:29 -0400
|
|
Subject: [PATCH] disable sensors access by default
|
|
|
|
---
|
|
.../content_settings/core/browser/content_settings_registry.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc
|
|
index f8abed2309f06..5e5b1b2667f7c 100644
|
|
--- a/components/content_settings/core/browser/content_settings_registry.cc
|
|
+++ b/components/content_settings/core/browser/content_settings_registry.cc
|
|
@@ -337,7 +337,7 @@ void ContentSettingsRegistry::Init() {
|
|
// TODO(crbug.com/904439): Update this to "SECURE_ONLY" once
|
|
// DeviceOrientationEvents and DeviceMotionEvents are only fired in secure
|
|
// contexts.
|
|
- Register(ContentSettingsType::SENSORS, "sensors", CONTENT_SETTING_ALLOW,
|
|
+ Register(ContentSettingsType::SENSORS, "sensors", CONTENT_SETTING_BLOCK,
|
|
WebsiteSettingsInfo::UNSYNCABLE, /*allowlisted_schemes=*/{},
|
|
/*valid_settings=*/{CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK},
|
|
WebsiteSettingsInfo::TOP_ORIGIN_ONLY_SCOPE,
|