ckerr

#51302: fix: crash in AutofillPopup teardown

Merged
Created: Apr 23, 2026, 5:44:11 PM
Merged: Apr 25, 2026, 9:59:22 PM
6 comments
Target: main

Description of Change

Fix a crash that I saw in CI today. Electron is in AutofillPopupView::Show() when the popup tries to show itself after the parent's native view has already gone away during teardown.

2026-04-23T20:44:32.7015810Z Received signal 11 SEGV_ACCERR 000000000160
2026-04-23T20:44:32.9322010Z 4   Electron Framework  ... views::Widget::IsVisible() const + 28
2026-04-23T20:44:32.9528810Z 6   Electron Framework  ... electron::AutofillPopupView::Show() + 200
2026-04-23T20:44:32.9632090Z 7   Electron Framework  ... electron::AutofillPopup::CreateView(...) + 1380
2026-04-23T20:44:32.9749770Z 8   Electron Framework  ... electron::AutofillDriver::ShowAutofillPopup(...) + 736
2026-04-23T20:44:33.0015220Z ✗ Electron tests failed with kill signal SIGSEGV.

Checklist

Release Notes

Notes: Fixed a crash that could occur when an autofill suggestion popup was shown while a window was closing.

Backports

40-x-y
Merged
PR Number
#
Merged At
Released In
Not yet
Release Date
Not yet
41-x-y
Merged
PR Number
#51321
Merged At
Apr 27, 2026, 3:49:01 AM
Released In
Not yet
Release Date
Not yet
42-x-y
Merged
PR Number
#51317
Merged At
Apr 26, 2026, 8:50:35 AM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron