diff --git a/shell/browser/ui/views/win_frame_view.cc b/shell/browser/ui/views/win_frame_view.cc index 9ddea873c704c..7ca295ec5c12d 100644 --- a/shell/browser/ui/views/win_frame_view.cc +++ b/shell/browser/ui/views/win_frame_view.cc @@ -34,6 +34,14 @@ void WinFrameView::Init(NativeWindowViews* window, views::Widget* frame) { window_ = window; frame_ = frame; + // Prevent events from trickling down the views hierarchy here, since + // when a given resizable window is frameless we only want to use + // FramelessView's ResizingBorderHitTest in + // ShouldDescendIntoChildForEventHandling. See + // https://chromium-review.googlesource.com/c/chromium/src/+/3251980. + if (!window_->has_frame() && window_->IsResizable()) + frame_->client_view()->SetCanProcessEventsWithinSubtree(false); + if (window->IsWindowControlsOverlayEnabled()) { caption_button_container_ = AddChildView(std::make_unique(this));