LeOSium_old/patches/0001-Vanadium/0049-enable-strict-site-iso...

48 lines
2.0 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Thu, 2 May 2019 07:15:32 -0400
Subject: [PATCH] enable strict site isolation by default on Android
---
chrome/browser/about_flags.cc | 10 ----------
chrome/common/chrome_features.cc | 4 ----
2 files changed, 14 deletions(-)
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index e2d74e803159c..23e19d205b9b9 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4522,16 +4522,6 @@ const FeatureEntry kFeatureEntries[] = {
flag_descriptions::kMojoLinuxChannelSharedMemDescription,
kOsCrOS | kOsLinux | kOsLacros | kOsAndroid,
FEATURE_VALUE_TYPE(mojo::core::kMojoLinuxChannelSharedMem)},
-#endif
-#if BUILDFLAG(IS_ANDROID)
- {"enable-site-isolation-for-password-sites",
- flag_descriptions::kSiteIsolationForPasswordSitesName,
- flag_descriptions::kSiteIsolationForPasswordSitesDescription, kOsAndroid,
- FEATURE_VALUE_TYPE(
- site_isolation::features::kSiteIsolationForPasswordSites)},
- {"enable-site-per-process", flag_descriptions::kStrictSiteIsolationName,
- flag_descriptions::kStrictSiteIsolationDescription, kOsAndroid,
- SINGLE_VALUE_TYPE(switches::kSitePerProcess)},
#endif
{"enable-isolated-web-apps", flag_descriptions::kEnableIsolatedWebAppsName,
flag_descriptions::kEnableIsolatedWebAppsDescription, kOsAll,
diff --git a/chrome/common/chrome_features.cc b/chrome/common/chrome_features.cc
index a0fab5169196e..385555fa4f9b2 100644
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -1049,11 +1049,7 @@ BASE_FEATURE(kSecurityKeyAttestationPrompt,
// browser_features, as they are only used on the browser side.
BASE_FEATURE(kSitePerProcess,
"SitePerProcess",
-#if BUILDFLAG(IS_ANDROID)
- base::FEATURE_DISABLED_BY_DEFAULT
-#else
base::FEATURE_ENABLED_BY_DEFAULT
-#endif
);
#if BUILDFLAG(IS_CHROMEOS_ASH)