summaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-sandbox_policy_switches.cc
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2025-07-15 22:57:24 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2025-07-15 23:02:24 +0900
commitd6775c3866b3a55fa254d8ad9c746953d80bad8e (patch)
treee486c7a0d074a5409e46c9ee82c72ca423ee7254 /devel/electron37/files/patch-sandbox_policy_switches.cc
parentaudio/baresip: Update to 3.24.0 (diff)
devel/electron37: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
Diffstat (limited to 'devel/electron37/files/patch-sandbox_policy_switches.cc')
-rw-r--r--devel/electron37/files/patch-sandbox_policy_switches.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-sandbox_policy_switches.cc b/devel/electron37/files/patch-sandbox_policy_switches.cc
new file mode 100644
index 000000000000..a379c285936b
--- /dev/null
+++ b/devel/electron37/files/patch-sandbox_policy_switches.cc
@@ -0,0 +1,13 @@
+--- sandbox/policy/switches.cc.orig 2025-04-22 20:15:27 UTC
++++ sandbox/policy/switches.cc
+@@ -37,7 +37,9 @@ const char kNoSandbox[] = "no-sandbox";
+ // Meant to be used as a browser-level switch for testing purposes only.
+ const char kNoSandbox[] = "no-sandbox";
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++const char kDisableUnveil[] = "disable-unveil";
++
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // Instructs the zygote to launch without a sandbox. Processes forked from this
+ // type of zygote will apply their own custom sandboxes later.
+ const char kNoZygoteSandbox[] = "no-zygote-sandbox";