summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-content_browser_browser__main__loop.cc
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2021-11-24 17:28:24 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2021-11-24 17:30:52 +0900
commit4da4f5edbf9de5c4269cf66d70044f4cb3abdc41 (patch)
tree21363ca7518a943c48bde3a669c78444685f832e /devel/electron13/files/patch-content_browser_browser__main__loop.cc
parentports-mgmt/octopkg: update description and WWW (diff)
devel/electron13: update to 13.6.2 (and rename from devel/electron12)
Changelog: https://www.electronjs.org/blog/electron-13-0
Diffstat (limited to 'devel/electron13/files/patch-content_browser_browser__main__loop.cc')
-rw-r--r--devel/electron13/files/patch-content_browser_browser__main__loop.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-content_browser_browser__main__loop.cc b/devel/electron13/files/patch-content_browser_browser__main__loop.cc
new file mode 100644
index 000000000000..1adde81e73a3
--- /dev/null
+++ b/devel/electron13/files/patch-content_browser_browser__main__loop.cc
@@ -0,0 +1,29 @@
+--- content/browser/browser_main_loop.cc.orig 2021-07-15 19:13:39 UTC
++++ content/browser/browser_main_loop.cc
+@@ -562,7 +562,7 @@ int BrowserMainLoop::EarlyInitialization() {
+
+ // Up the priority of the UI thread unless it was already high (since Mac
+ // and recent versions of Android (O+) do this automatically).
+-#if !defined(OS_MAC)
++#if !defined(OS_MAC) && !defined(OS_BSD)
+ if (base::FeatureList::IsEnabled(
+ features::kBrowserUseDisplayThreadPriority) &&
+ base::PlatformThread::GetCurrentThreadPriority() <
+@@ -572,7 +572,7 @@ int BrowserMainLoop::EarlyInitialization() {
+ }
+ #endif // !defined(OS_MAC)
+
+-#if defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
++#if defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) || \
+ defined(OS_ANDROID)
+ // We use quite a few file descriptors for our IPC as well as disk the disk
+ // cache,and the default limit on the Mac is low (256), so bump it up.
+@@ -582,7 +582,7 @@ int BrowserMainLoop::EarlyInitialization() {
+ // users can easily hit this limit with many open tabs. Bump up the limit to
+ // an arbitrarily high number. See https://crbug.com/539567
+ base::IncreaseFdLimitTo(8192);
+-#endif // defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) ||
++#endif // defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) ||
+ // defined(OS_ANDROID)
+
+ #if defined(OS_WIN)