Browse Source

Additional fix for proactively swap

master 84.0.4147.125-1
wchen342 2 years ago
parent
commit
b89493e052
Signed by untrusted user: wchen342 GPG Key ID: 720B70365E800508
  1. 2
      build.sh
  2. 3
      domain_sub_2.list
  3. 4
      patches/Vanadium/0021-disable-media-router-by-default.patch
  4. 16
      patches/ungoogled-chromium-android/Enable-ProactivelySwapBrowsingInstance.patch

2
build.sh

@ -245,7 +245,7 @@ popd
# chromium-web-store, extension version only
# git clone https://github.com/NeverDecaf/chromium-web-store
# cp -ar chromium-web-store/src src/chrome/browser/resources/chromium_web_store
# cp -ar chromium-web-store/en_nolocale src/chrome/browser/resources/chromium_web_store
# Additional Source Patches
## Extra fixes for Chromium source

3
domain_sub_2.list

@ -3852,7 +3852,6 @@
./components/safe_browsing/core/resources/push_file_type_proto.py
./components/schema_org/common/improved_metadata.mojom
./components/schema_org/common/metadata.mojom
./components/search_engines/prepopulated_engines.json
./components/security_interstitials/content/android/java/src/org/chromium/components/security_interstitials/CaptivePortalHelper.java
./components/security_interstitials/content/cert_logger.proto
./components/security_interstitials/core/browser/resources/interstitial_large.js
@ -4471,7 +4470,6 @@
./net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java
./net/android/java/src/org/chromium/net/X509Util.java
./net/base/network_change_notifier_win.cc
./net/http/transport_security_state_static.json
./net/socket/tcp_socket_win.cc
./net/socket/udp_socket_posix.h
./net/socket/udp_socket_win.h
@ -4960,7 +4958,6 @@
./third_party/blink/renderer/core/css/invalidation/pending_invalidations.h
./third_party/blink/renderer/core/css/invalidation/style_invalidator.h
./third_party/blink/renderer/core/css/parser/css.proto
./third_party/blink/renderer/core/dom/document.cc
./third_party/blink/renderer/core/editing/finder/find_buffer.h
./third_party/blink/renderer/core/editing/spellcheck/cold_mode_spell_check_requester.h
./third_party/blink/renderer/core/editing/spellcheck/hot_mode_spell_check_requester.h

4
patches/Vanadium/0021-disable-media-router-by-default.patch

@ -10,7 +10,7 @@ Subject: [PATCH 21/30] disable media router by default
--- a/chrome/browser/media/router/media_router_feature.cc
+++ b/chrome/browser/media/router/media_router_feature.cc
@@ -50,17 +50,16 @@ const PrefService::Preference* GetMediaR
@@ -46,17 +46,16 @@ const PrefService::Preference* GetMediaR
bool MediaRouterEnabled(content::BrowserContext* context) {
#if defined(OS_ANDROID) || BUILDFLAG(ENABLE_EXTENSIONS)
@ -38,7 +38,7 @@ Subject: [PATCH 21/30] disable media router by default
#endif // defined(OS_ANDROID) || BUILDFLAG(ENABLE_EXTENSIONS)
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -409,7 +409,7 @@ void ProfileImpl::RegisterProfilePrefs(
@@ -408,7 +408,7 @@ void ProfileImpl::RegisterProfilePrefs(
#endif
registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false);

16
patches/ungoogled-chromium-android/Enable-ProactivelySwapBrowsingInstance.patch

@ -3,8 +3,9 @@ Date: Tue, 11 Aug 2020 16:07:07 -0400
Subject: Enable experimental ProactivelySwapBrowsingInstance feature
---
content/public/common/content_features.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
content/common/content_navigation_policy.cc | 2 +-
content/public/common/content_features.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@ -17,3 +18,14 @@ Subject: Enable experimental ProactivelySwapBrowsingInstance feature
// Reduce the amount of information in the default 'referer' header for
// cross-origin requests.
--- a/content/common/content_navigation_policy.cc
+++ b/content/common/content_navigation_policy.cc
@@ -52,7 +52,7 @@ const base::FeatureParam<ProactivelySwap
proactively_swap_browsing_instance_level{
&features::kProactivelySwapBrowsingInstance,
kProactivelySwapBrowsingInstanceLevelParameterName,
- ProactivelySwapBrowsingInstanceLevel::kDisabled,
+ ProactivelySwapBrowsingInstanceLevel::kCrossSiteReuseProcess,
&proactively_swap_browsing_instance_levels};
ProactivelySwapBrowsingInstanceLevel GetProactivelySwapBrowsingInstanceLevel() {

Loading…
Cancel
Save