From 508be0d78f16c5fd8d3130f17c6d635de85a6330 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 9 Nov 2020 22:29:52 -0800 Subject: [PATCH] browser(webkit): fix big sur crashes after latest roll (#4391) --- browser_patches/webkit/BUILD_NUMBER | 4 +- browser_patches/webkit/patches/bootstrap.diff | 46 +++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER index f6848bfd8d..38f211765d 100644 --- a/browser_patches/webkit/BUILD_NUMBER +++ b/browser_patches/webkit/BUILD_NUMBER @@ -1,2 +1,2 @@ -1382 -Changed: yurys@chromium.org Mon 09 Nov 2020 10:20:30 AM PST +1383 +Changed: yurys@chromium.org Mon 09 Nov 2020 10:27:02 PM PST diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diff index 2a7d93b174..e1ba19a8fc 100644 --- a/browser_patches/webkit/patches/bootstrap.diff +++ b/browser_patches/webkit/patches/bootstrap.diff @@ -16543,6 +16543,52 @@ index 36dcac26e1b1c0b76071a8ff02feacbb8973e590..212220ceb975857a8519d6ca35c1d842 } void WebProcess::initializeConnection(IPC::Connection* connection) +diff --git a/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in b/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in +index 2ca17abc2067c6cb454008adbccb25522c2a2f31..fb053eefa24dcafda25f6865d75725b82b137f5b 100644 +--- a/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in ++++ b/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in +@@ -1418,21 +1418,26 @@ + #include + #endif + +-(when (defined? 'mach-bootstrap) +- (allow mach-bootstrap +- (apply-message-filter +- (allow xpc-message-send (with telemetry)) +- (allow xpc-message-send (message-number +- 204 +- 207 +- 301 +- 800 +- 804 +- ) +- ) +- ) +- ) +-) ++;;; Playwright: This requires an entitlement ++;;; that only exists in builds signed by Apple. ++;;; It looks like we can disable it for now ++;;; without side effects ++;;; ++;;; (when (defined? 'mach-bootstrap) ++;;; (allow mach-bootstrap ++;;; (apply-message-filter ++;;; (allow xpc-message-send (with telemetry)) ++;;; (allow xpc-message-send (message-number ++;;; 204 ++;;; 207 ++;;; 301 ++;;; 800 ++;;; 804 ++;;; ) ++;;; ) ++;;; ) ++;;; ) ++;;; ) + + (when (defined? 'mach-kernel-endpoint) + (allow mach-kernel-endpoint diff --git a/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp b/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp index 89bc159df35910abe133c68d71057cdfe1995cbb..aba8e9110a3ec4c59e9888b148e1e908d477cbe4 100644 --- a/Source/WebKit/WebProcess/win/WebProcessMainWin.cpp