LeOSium_webview/mulch/patches/0001-Vanadium/0048-enable-strict-site-iso...

48 lines
2.0 KiB
Diff
Raw Normal View History

2023-11-18 11:46:19 +01:00
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 419e96b4fdc13..3a898698c54c8 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -5066,16 +5066,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, kOsDesktop,
diff --git a/chrome/common/chrome_features.cc b/chrome/common/chrome_features.cc
index e2cb9275f37cf..4060ed3970f9d 100644
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -1178,11 +1178,7 @@ const base::FeatureParam<base::TimeDelta> kSCTLogMaxIngestionRandomDelay{
// 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)