diff --git a/CHROMIUM_BUILD_COMPATIBILITY.txt b/CHROMIUM_BUILD_COMPATIBILITY.txt index 9d345e915..d275e9e53 100644 --- a/CHROMIUM_BUILD_COMPATIBILITY.txt +++ b/CHROMIUM_BUILD_COMPATIBILITY.txt @@ -7,5 +7,5 @@ # https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding { - 'chromium_checkout': 'refs/tags/77.0.3865.0' + 'chromium_checkout': 'refs/tags/77.0.3865.56' } diff --git a/libcef/browser/osr/render_widget_host_view_osr.cc b/libcef/browser/osr/render_widget_host_view_osr.cc index c61a1f896..9172878fa 100644 --- a/libcef/browser/osr/render_widget_host_view_osr.cc +++ b/libcef/browser/osr/render_widget_host_view_osr.cc @@ -259,7 +259,8 @@ CefRenderWidgetHostViewOSR::~CefRenderWidgetHostViewOSR() { // Marking the DelegatedFrameHost as removed from the window hierarchy is // necessary to remove all connections to its old ui::Compositor. if (is_showing_) - delegated_frame_host_->WasHidden(); + delegated_frame_host_->WasHidden( + content::DelegatedFrameHost::HiddenCause::kOther); delegated_frame_host_->DetachFromCompositor(); delegated_frame_host_.reset(nullptr); @@ -347,7 +348,8 @@ void CefRenderWidgetHostViewOSR::Hide() { if (render_widget_host_) render_widget_host_->WasHidden(); - GetDelegatedFrameHost()->WasHidden(); + GetDelegatedFrameHost()->WasHidden( + content::DelegatedFrameHost::HiddenCause::kOther); GetDelegatedFrameHost()->DetachFromCompositor(); } diff --git a/patch/patches/browser_compositor_mac.patch b/patch/patches/browser_compositor_mac.patch index 546271ffc..d9a7d5765 100644 --- a/patch/patches/browser_compositor_mac.patch +++ b/patch/patches/browser_compositor_mac.patch @@ -12,7 +12,7 @@ index de89d291e5cb..9ce7bf4cb250 100644 // Force a new surface id to be allocated. Returns true if the // RenderWidgetHostImpl sent the resulting surface id to the renderer. diff --git content/browser/renderer_host/browser_compositor_view_mac.mm content/browser/renderer_host/browser_compositor_view_mac.mm -index 4b3f3c7e97e7..0ce693402b99 100644 +index 8ddd790decc4..3ffd3db8da4b 100644 --- content/browser/renderer_host/browser_compositor_view_mac.mm +++ content/browser/renderer_host/browser_compositor_view_mac.mm @@ -85,6 +85,12 @@ DelegatedFrameHost* BrowserCompositorMac::GetDelegatedFrameHost() { diff --git a/patch/patches/browser_plugin_guest_1565.patch b/patch/patches/browser_plugin_guest_1565.patch index 01116777b..0f2b13ea2 100644 --- a/patch/patches/browser_plugin_guest_1565.patch +++ b/patch/patches/browser_plugin_guest_1565.patch @@ -79,7 +79,7 @@ index bfb918a2cba3..a193b5a0fed8 100644 // Creates a new View that holds a non-top-level widget and receives messages // for it. diff --git content/browser/web_contents/web_contents_view_aura.cc content/browser/web_contents/web_contents_view_aura.cc -index ab27502c3509..282985c05c45 100644 +index 68f268efe02e..55c9473895e9 100644 --- content/browser/web_contents/web_contents_view_aura.cc +++ content/browser/web_contents/web_contents_view_aura.cc @@ -947,7 +947,8 @@ void WebContentsViewAura::CreateView(const gfx::Size& initial_size, @@ -101,7 +101,7 @@ index ab27502c3509..282985c05c45 100644 g_create_render_widget_host_view ? g_create_render_widget_host_view(render_widget_host, diff --git content/browser/web_contents/web_contents_view_aura.h content/browser/web_contents/web_contents_view_aura.h -index 9be20d50ba4b..84c5106d15f2 100644 +index ed3c8d86cacc..70f869da762f 100644 --- content/browser/web_contents/web_contents_view_aura.h +++ content/browser/web_contents/web_contents_view_aura.h @@ -122,7 +122,7 @@ class CONTENT_EXPORT WebContentsViewAura diff --git a/patch/patches/chrome_browser.patch b/patch/patches/chrome_browser.patch index 2a4ad9bb4..3bb032298 100644 --- a/patch/patches/chrome_browser.patch +++ b/patch/patches/chrome_browser.patch @@ -1,5 +1,5 @@ diff --git chrome/browser/BUILD.gn chrome/browser/BUILD.gn -index 8ce5e842bbb2..95b0356cab27 100644 +index c00a09a5ec2b..5596693cc879 100644 --- chrome/browser/BUILD.gn +++ chrome/browser/BUILD.gn @@ -9,6 +9,7 @@ import("//build/config/jumbo.gni") diff --git a/patch/patches/chrome_browser_net_export.patch b/patch/patches/chrome_browser_net_export.patch index 3c6df5542..bc7faaa9c 100644 --- a/patch/patches/chrome_browser_net_export.patch +++ b/patch/patches/chrome_browser_net_export.patch @@ -1,5 +1,5 @@ diff --git chrome/browser/ui/BUILD.gn chrome/browser/ui/BUILD.gn -index 50f7329cca40..c6cae9beda15 100644 +index 3ec0ed426c79..7ffad26a95a3 100644 --- chrome/browser/ui/BUILD.gn +++ chrome/browser/ui/BUILD.gn @@ -10,6 +10,7 @@ import("//build/config/jumbo.gni") diff --git a/patch/patches/content_2015.patch b/patch/patches/content_2015.patch index 9013e2c97..4a3a2d726 100644 --- a/patch/patches/content_2015.patch +++ b/patch/patches/content_2015.patch @@ -1,8 +1,8 @@ diff --git chrome/browser/download/download_target_determiner.cc chrome/browser/download/download_target_determiner.cc -index e0d2c5c42517..0849c5bf6b7e 100644 +index bf1ca3fd565b..7e758b4da15c 100644 --- chrome/browser/download/download_target_determiner.cc +++ chrome/browser/download/download_target_determiner.cc -@@ -631,8 +631,8 @@ void IsHandledBySafePlugin(content::ResourceContext* resource_context, +@@ -630,8 +630,8 @@ void IsHandledBySafePlugin(content::ResourceContext* resource_context, content::PluginService* plugin_service = content::PluginService::GetInstance(); bool plugin_found = plugin_service->GetPluginInfo( @@ -129,7 +129,7 @@ index b0458c1168d9..98f7ae7b7899 100644 if (stale) { // Refresh the plugins asynchronously. diff --git content/browser/loader/navigation_url_loader_impl.cc content/browser/loader/navigation_url_loader_impl.cc -index 7dafa5c27290..14d97d465f2c 100644 +index 8a5502430547..689f5dbfe4a6 100644 --- content/browser/loader/navigation_url_loader_impl.cc +++ content/browser/loader/navigation_url_loader_impl.cc @@ -1061,6 +1061,13 @@ class NavigationURLLoaderImpl::URLLoaderRequestController @@ -373,10 +373,10 @@ index 0e2e86e6a2af..b44e90f69263 100644 virtual void FocusedElementChanged(const blink::WebElement& element) {} diff --git content/renderer/render_frame_impl.cc content/renderer/render_frame_impl.cc -index e2a9d4a370f3..2919772fef77 100644 +index 01b1d995c656..31bfea00ca60 100644 --- content/renderer/render_frame_impl.cc +++ content/renderer/render_frame_impl.cc -@@ -4095,7 +4095,8 @@ blink::WebPlugin* RenderFrameImpl::CreatePlugin( +@@ -4118,7 +4118,8 @@ blink::WebPlugin* RenderFrameImpl::CreatePlugin( std::string mime_type; bool found = false; Send(new FrameHostMsg_GetPluginInfo( @@ -386,7 +386,7 @@ index e2a9d4a370f3..2919772fef77 100644 params.mime_type.Utf8(), &found, &info, &mime_type)); if (!found) return nullptr; -@@ -4510,6 +4511,8 @@ void RenderFrameImpl::FrameDetached(DetachType type) { +@@ -4533,6 +4534,8 @@ void RenderFrameImpl::FrameDetached(DetachType type) { void RenderFrameImpl::FrameFocused() { Send(new FrameHostMsg_FrameFocused(routing_id_)); diff --git a/patch/patches/linux_gtk_2014.patch b/patch/patches/linux_gtk_2014.patch index 1ed311970..551ab9776 100644 --- a/patch/patches/linux_gtk_2014.patch +++ b/patch/patches/linux_gtk_2014.patch @@ -39,10 +39,10 @@ index 07f06ac694f5..831fd9f82dbe 100644 void ChromeBrowserMainExtraPartsViewsLinux::ToolkitInitialized() { diff --git chrome/test/BUILD.gn chrome/test/BUILD.gn -index f60af132bcdd..626c0081b78a 100644 +index 39a8fc308408..8097a58a5fe1 100644 --- chrome/test/BUILD.gn +++ chrome/test/BUILD.gn -@@ -4457,7 +4457,7 @@ test("unit_tests") { +@@ -4461,7 +4461,7 @@ test("unit_tests") { if (use_gio) { configs += [ "//build/linux:gio_config" ] } @@ -51,7 +51,7 @@ index f60af132bcdd..626c0081b78a 100644 deps += [ "//chrome/browser/ui/libgtkui" ] } -@@ -5471,7 +5471,7 @@ if (!is_android) { +@@ -5475,7 +5475,7 @@ if (!is_android) { # suites, it seems like one or another starts timing out too. "../browser/ui/views/keyboard_access_browsertest.cc", ] diff --git a/patch/patches/rwh_background_color_1984.patch b/patch/patches/rwh_background_color_1984.patch index d5c3da1cf..d6ec7263b 100644 --- a/patch/patches/rwh_background_color_1984.patch +++ b/patch/patches/rwh_background_color_1984.patch @@ -1,8 +1,8 @@ diff --git content/browser/renderer_host/render_widget_host_view_aura.cc content/browser/renderer_host/render_widget_host_view_aura.cc -index 7bea1b72e4d0..a0c6c00d48a7 100644 +index d51ce884a964..87a029e2bf60 100644 --- content/browser/renderer_host/render_widget_host_view_aura.cc +++ content/browser/renderer_host/render_widget_host_view_aura.cc -@@ -696,10 +696,12 @@ gfx::Rect RenderWidgetHostViewAura::GetViewBounds() { +@@ -711,10 +711,12 @@ gfx::Rect RenderWidgetHostViewAura::GetViewBounds() { void RenderWidgetHostViewAura::UpdateBackgroundColor() { DCHECK(GetBackgroundColor()); @@ -19,7 +19,7 @@ index 7bea1b72e4d0..a0c6c00d48a7 100644 } void RenderWidgetHostViewAura::WindowTitleChanged() { -@@ -2024,6 +2026,15 @@ void RenderWidgetHostViewAura::CreateAuraWindow(aura::client::WindowType type) { +@@ -2039,6 +2041,15 @@ void RenderWidgetHostViewAura::CreateAuraWindow(aura::client::WindowType type) { // Init(), because it needs to have the layer. if (frame_sink_id_.is_valid()) window_->SetEmbedFrameSinkId(frame_sink_id_); diff --git a/patch/patches/views_1749_2102.patch b/patch/patches/views_1749_2102.patch index f553da490..386915b4a 100644 --- a/patch/patches/views_1749_2102.patch +++ b/patch/patches/views_1749_2102.patch @@ -230,7 +230,7 @@ index ce169b164bc7..743509aa6acb 100644 std::unique_ptr selection_controller_; diff --git ui/views/controls/menu/menu_controller.cc ui/views/controls/menu/menu_controller.cc -index 354216cafea8..16ec7b4c4c3f 100644 +index bceec6f17210..93476578a48a 100644 --- ui/views/controls/menu/menu_controller.cc +++ ui/views/controls/menu/menu_controller.cc @@ -2571,8 +2571,13 @@ MenuItemView* MenuController::FindNextSelectableMenuItem( @@ -472,7 +472,7 @@ index 4f865802a6e9..42d047bd68ad 100644 // Move the cursor because EnterNotify/LeaveNotify are generated with the // current mouse position as a result of XGrabPointer() diff --git ui/views/view.h ui/views/view.h -index a4f2ba254fb0..8d76cfa46fa6 100644 +index 75eecfb67d0a..d93bf32ffe66 100644 --- ui/views/view.h +++ ui/views/view.h @@ -22,6 +22,7 @@ diff --git a/patch/patches/views_widget_180_1481_1565_1677_1749.patch b/patch/patches/views_widget_180_1481_1565_1677_1749.patch index 4ddedc0d2..2255a18c1 100644 --- a/patch/patches/views_widget_180_1481_1565_1677_1749.patch +++ b/patch/patches/views_widget_180_1481_1565_1677_1749.patch @@ -173,7 +173,7 @@ index 70553b153c44..ecd99bc78373 100644 return host ? host->GetAcceleratedWidget() : nullptr; } diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc -index 7e31a1c159af..eb0451b8913a 100644 +index 0eedc2665313..53492f79fe17 100644 --- ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc +++ ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc @@ -95,6 +95,7 @@ DesktopWindowTreeHostWin::DesktopWindowTreeHostWin( @@ -198,7 +198,7 @@ index 7e31a1c159af..eb0451b8913a 100644 remove_standard_frame_ = params.remove_standard_frame; has_non_client_view_ = Widget::RequiresNonClientView(params.type); -@@ -891,11 +896,15 @@ void DesktopWindowTreeHostWin::HandleFrameChanged() { +@@ -900,11 +905,15 @@ void DesktopWindowTreeHostWin::HandleFrameChanged() { } void DesktopWindowTreeHostWin::HandleNativeFocus(HWND last_focused_window) { @@ -232,7 +232,7 @@ index 335db0db49bb..7f60402ed086 100644 // a reference. corewm::TooltipWin* tooltip_; diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc -index b03a5bc9d509..bcbf960a130e 100644 +index 7c4f1e88e422..c21c8b24ba54 100644 --- ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc +++ ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc @@ -139,6 +139,7 @@ ui::XWindow::Configuration ConvertInitParamsToX11WindowConfig( @@ -261,7 +261,7 @@ index b03a5bc9d509..bcbf960a130e 100644 gfx::Rect bounds_in_pixels = x11_window_->bounds(); return ToDIPRect(bounds_in_pixels); } -@@ -954,6 +959,9 @@ void DesktopWindowTreeHostX11::SetBoundsInPixels( +@@ -955,6 +960,9 @@ void DesktopWindowTreeHostX11::SetBoundsInPixels( } gfx::Point DesktopWindowTreeHostX11::GetLocationOnScreenInPixels() const { @@ -271,7 +271,7 @@ index b03a5bc9d509..bcbf960a130e 100644 return x11_window_->bounds().origin(); } -@@ -1280,6 +1288,11 @@ void DesktopWindowTreeHostX11::InitX11Window(const Widget::InitParams& params) { +@@ -1281,6 +1289,11 @@ void DesktopWindowTreeHostX11::InitX11Window(const Widget::InitParams& params) { config.background_color = background_color; config.prefer_dark_theme = linux_ui && linux_ui->PreferDarkTheme(); config.icon = ViewsDelegate::GetInstance()->GetDefaultWindowIcon(); @@ -407,10 +407,10 @@ index 9edfa2c00c4b..8a9217578609 100644 if (native_widget_delegate->IsDialogBox()) { *style |= DS_MODALFRAME; diff --git ui/views/win/hwnd_message_handler.cc ui/views/win/hwnd_message_handler.cc -index 9b683f301913..8609f61ebd0f 100644 +index 4d674d15da3a..e7cb3a733823 100644 --- ui/views/win/hwnd_message_handler.cc +++ ui/views/win/hwnd_message_handler.cc -@@ -2963,10 +2963,13 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, +@@ -2967,10 +2967,13 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, } else if (event.type() == ui::ET_MOUSEWHEEL) { ui::MouseWheelEvent mouse_wheel_event(msg); // Reroute the mouse wheel to the window under the pointer if applicable. diff --git a/patch/patches/viz_osr_2575.patch b/patch/patches/viz_osr_2575.patch index 072a267db..e92bc9a2d 100644 --- a/patch/patches/viz_osr_2575.patch +++ b/patch/patches/viz_osr_2575.patch @@ -80,7 +80,7 @@ index d9a9730a78b9..d98426e9f789 100644 private: const HWND hwnd_; diff --git components/viz/service/BUILD.gn components/viz/service/BUILD.gn -index fdd358f741e6..57afa1d3855e 100644 +index 16ef26aa4816..5986062f73b4 100644 --- components/viz/service/BUILD.gn +++ components/viz/service/BUILD.gn @@ -13,6 +13,8 @@ config("viz_service_implementation") { diff --git a/patch/patches/web_contents_1257_1565.patch b/patch/patches/web_contents_1257_1565.patch index 3a69708de..620a887b0 100644 --- a/patch/patches/web_contents_1257_1565.patch +++ b/patch/patches/web_contents_1257_1565.patch @@ -1,5 +1,5 @@ diff --git content/browser/web_contents/web_contents_impl.cc content/browser/web_contents/web_contents_impl.cc -index ae1bcfa7db7d..0ff65dcfe38f 100644 +index 21cac3c4da2a..a612822d5d57 100644 --- content/browser/web_contents/web_contents_impl.cc +++ content/browser/web_contents/web_contents_impl.cc @@ -2131,21 +2131,30 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) { @@ -95,7 +95,7 @@ index df508da0aef2..f6f4bf42b108 100644 WebContents::CreateParams::CreateParams(const CreateParams& other) = default; diff --git content/public/browser/web_contents.h content/public/browser/web_contents.h -index 50236e972100..8c09c1b53d27 100644 +index 367705d05ebc..7e25a0de3020 100644 --- content/public/browser/web_contents.h +++ content/public/browser/web_contents.h @@ -76,9 +76,11 @@ class BrowserPluginGuestDelegate; diff --git a/patch/patches/webkit_plugin_info_2015.patch b/patch/patches/webkit_plugin_info_2015.patch index 0fbaa131a..477ba7c17 100644 --- a/patch/patches/webkit_plugin_info_2015.patch +++ b/patch/patches/webkit_plugin_info_2015.patch @@ -44,10 +44,10 @@ index 80a9ec9bc75b..13cbb056cdfa 100644 .Top() .GetSecurityContext() diff --git third_party/blink/renderer/core/frame/local_frame.cc third_party/blink/renderer/core/frame/local_frame.cc -index 60b3fe655dc8..8dedb75b8d8b 100644 +index 1f5407c50edd..648753d70ec7 100644 --- third_party/blink/renderer/core/frame/local_frame.cc +++ third_party/blink/renderer/core/frame/local_frame.cc -@@ -1182,7 +1182,7 @@ WebContentSettingsClient* LocalFrame::GetContentSettingsClient() { +@@ -1188,7 +1188,7 @@ WebContentSettingsClient* LocalFrame::GetContentSettingsClient() { PluginData* LocalFrame::GetPluginData() const { if (!Loader().AllowPlugins(kNotAboutToInstantiatePlugin)) return nullptr; diff --git a/patch/patches/webkit_popups.patch b/patch/patches/webkit_popups.patch index 3841dbdaa..f4ba5234f 100644 --- a/patch/patches/webkit_popups.patch +++ b/patch/patches/webkit_popups.patch @@ -62,7 +62,7 @@ index 720ea6fcfb7f..9116fbdcf673 100644 TransformationMatrix device_emulation_transform_; diff --git third_party/blink/renderer/core/page/chrome_client_impl.cc third_party/blink/renderer/core/page/chrome_client_impl.cc -index 2df0aefc5764..6ef2dae97acd 100644 +index 97c37b0ae3ae..40f236651ced 100644 --- third_party/blink/renderer/core/page/chrome_client_impl.cc +++ third_party/blink/renderer/core/page/chrome_client_impl.cc @@ -848,7 +848,7 @@ bool ChromeClientImpl::HasOpenedPopup() const { diff --git a/patch/patches/webview_plugin_2020.patch b/patch/patches/webview_plugin_2020.patch index 3a5c5ab10..e7d9ad46d 100644 --- a/patch/patches/webview_plugin_2020.patch +++ b/patch/patches/webview_plugin_2020.patch @@ -1,5 +1,5 @@ diff --git chrome/app/generated_resources.grd chrome/app/generated_resources.grd -index 0f25c61d5170..201f4d1c1651 100644 +index 875bf04a1a60..09990ac7115b 100644 --- chrome/app/generated_resources.grd +++ chrome/app/generated_resources.grd @@ -4648,7 +4648,7 @@ Keep your key file in a safe place. You will need it to create new versions of y