From a4cf5442d4d609280f9122c79df21553c2c21fa7 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Wed, 1 May 2024 18:21:25 +0200 Subject: [PATCH] Enable kEnableMojoJSProtectedMemory by default --- build/patches/Improve-the-browser-sandbox.patch | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build/patches/Improve-the-browser-sandbox.patch b/build/patches/Improve-the-browser-sandbox.patch index 60defb91..b5320c0d 100644 --- a/build/patches/Improve-the-browser-sandbox.patch +++ b/build/patches/Improve-the-browser-sandbox.patch @@ -7,9 +7,17 @@ using the new flags on android License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html --- - sandbox/policy/features.cc | 8 ++++++++ - 1 file changed, 8 insertions(+) + .../common/features_cc/Improve-the-browser-sandbox.inc | 1 + + sandbox/policy/features.cc | 8 ++++++++ + 2 files changed, 9 insertions(+) + create mode 100644 cromite_flags/third_party/blink/common/features_cc/Improve-the-browser-sandbox.inc +diff --git a/cromite_flags/third_party/blink/common/features_cc/Improve-the-browser-sandbox.inc b/cromite_flags/third_party/blink/common/features_cc/Improve-the-browser-sandbox.inc +new file mode 100644 +--- /dev/null ++++ b/cromite_flags/third_party/blink/common/features_cc/Improve-the-browser-sandbox.inc +@@ -0,0 +1 @@ ++SET_CROMITE_FEATURE_ENABLED(kEnableMojoJSProtectedMemory); diff --git a/sandbox/policy/features.cc b/sandbox/policy/features.cc --- a/sandbox/policy/features.cc +++ b/sandbox/policy/features.cc