From 46b71bf509e26cb7904a2931264a52cc5c03d4ed Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Fri, 21 Apr 2023 15:21:37 +0200 Subject: [PATCH] revert default allow in windows --- build/patches/00WIN-ADDTO-JIT-site-settings.patch | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/build/patches/00WIN-ADDTO-JIT-site-settings.patch b/build/patches/00WIN-ADDTO-JIT-site-settings.patch index 67dd5b07..ce76a427 100644 --- a/build/patches/00WIN-ADDTO-JIT-site-settings.patch +++ b/build/patches/00WIN-ADDTO-JIT-site-settings.patch @@ -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},