From cd180474ee5e9274b6dbba9b50fd8ef0ad48d678 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Wed, 1 Jul 2020 06:50:08 -0700 Subject: [PATCH] browser(webkit): don't show context menus for headless windows (#2755) --- browser_patches/webkit/patches/bootstrap.diff | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diff index d16900f8cf..89bef2072f 100644 --- a/browser_patches/webkit/patches/bootstrap.diff +++ b/browser_patches/webkit/patches/bootstrap.diff @@ -13682,6 +13682,19 @@ index 0000000000000000000000000000000000000000..135a60361fa8fbf907382625e7c8dd4e +} + +} // namespace WebKit +diff --git a/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp b/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp +index aa171f48bc40a96a86d951451b578f609c573fce..8cdc2ff1e3a2ce3d05aacc46a83521c02442dd44 100644 +--- a/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp ++++ b/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp +@@ -105,6 +105,8 @@ void WebContextMenuProxyWin::showContextMenuWithItems(Vector