diff --git a/shell/browser/ui/views/autofill_popup_view.cc b/shell/browser/ui/views/autofill_popup_view.cc index fd2e50921460..068c1a0f61e3 100644 --- a/shell/browser/ui/views/autofill_popup_view.cc +++ b/shell/browser/ui/views/autofill_popup_view.cc @@ -224,6 +224,9 @@ void AutofillPopupView::DoUpdateBoundsAndRedrawPopup() { if (!popup_) return; + // Clamp popup_bounds_ to ensure it's never zero-width. + popup_->popup_bounds_.Union( + gfx::Rect(popup_->popup_bounds_.origin(), gfx::Size(1, 1))); GetWidget()->SetBounds(popup_->popup_bounds_); #if BUILDFLAG(ENABLE_OSR) if (view_proxy_.get()) {