revert default allow in windows

This commit is contained in:
Carmelo Messina
2023-04-21 15:21:37 +02:00
parent 89427c73fb
commit 46b71bf509
@@ -17,8 +17,8 @@ Subject: WIN ADDTO JIT site settings
.../views/page_info/page_info_view_factory.cc | 3 +++
.../settings_localized_strings_provider.cc | 7 ++++++
.../ui/webui/settings/site_settings_helper.cc | 3 ++-
.../core/browser/content_settings_registry.cc | 7 +++++-
15 files changed, 82 insertions(+), 2 deletions(-)
.../core/browser/content_settings_registry.cc | 3 ++-
15 files changed, 78 insertions(+), 2 deletions(-)
diff --git a/chrome/app/settings_strings.grdp b/chrome/app/settings_strings.grdp
--- a/chrome/app/settings_strings.grdp
@@ -257,16 +257,12 @@ diff --git a/chrome/browser/ui/webui/settings/site_settings_helper.cc b/chrome/b
diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc
--- a/components/content_settings/core/browser/content_settings_registry.cc
+++ b/components/content_settings/core/browser/content_settings_registry.cc
@@ -511,7 +511,12 @@ void ContentSettingsRegistry::Init() {
@@ -511,7 +511,8 @@ void ContentSettingsRegistry::Init() {
ContentSettingsInfo::EXCEPTIONS_ON_SECURE_ORIGINS_ONLY);
Register(ContentSettingsType::JAVASCRIPT_JIT, "javascript-jit",
- CONTENT_SETTING_BLOCK, WebsiteSettingsInfo::UNSYNCABLE,
+#if BUILDFLAG(IS_ANDROID)
+ CONTENT_SETTING_BLOCK,
+#else
+ CONTENT_SETTING_ALLOW,
+#endif
+ WebsiteSettingsInfo::UNSYNCABLE,
/*allowlisted_schemes=*/{},
/*valid_settings=*/{CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK},