Skip to content

fix: crash in AutofillPopup teardown#51302

Merged
ckerr merged 1 commit into
mainfrom
fix/macos-autofill-popup-teardown-crash
Apr 26, 2026
Merged

fix: crash in AutofillPopup teardown#51302
ckerr merged 1 commit into
mainfrom
fix/macos-autofill-popup-teardown-crash

Conversation

@ckerr

@ckerr ckerr commented Apr 23, 2026

Copy link
Copy Markdown
Member

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.

@ckerr ckerr added semver/patch backwards-compatible bug fixes target/40-x-y PR should also be added to the "40-x-y" branch. target/41-x-y PR should also be added to the "41-x-y" branch. target/42-x-y PR should also be added to the "42-x-y" branch. labels Apr 23, 2026
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Apr 23, 2026
@ckerr ckerr force-pushed the fix/macos-autofill-popup-teardown-crash branch from 0704d06 to 17ee08b Compare April 24, 2026 13:49
Fix a crash in AutofillPopupView::Show() when the popup
tried to show itself after the parent's native view had
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.
@ckerr ckerr force-pushed the fix/macos-autofill-popup-teardown-crash branch from 17ee08b to a2d5e61 Compare April 24, 2026 13:50
@ckerr

ckerr commented Apr 24, 2026

Copy link
Copy Markdown
Member Author

(force-pushed to pick up CI fixes in main)

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Apr 24, 2026
@ckerr ckerr merged commit 5af1a06 into main Apr 26, 2026
123 of 125 checks passed
@release-clerk

release-clerk Bot commented Apr 26, 2026

Copy link
Copy Markdown

Release Notes Persisted

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

@ckerr ckerr deleted the fix/macos-autofill-popup-teardown-crash branch April 26, 2026 02:59
@trop

trop Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "40-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/40-x-y PR should also be added to the "40-x-y" branch. label Apr 26, 2026
@trop

trop Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "41-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/40-x-y needs-manual-bp/41-x-y and removed target/41-x-y PR should also be added to the "41-x-y" branch. labels Apr 26, 2026
@trop

trop Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #51317

@trop trop Bot added in-flight/42-x-y merged/42-x-y PR was merged to the "42-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. in-flight/42-x-y labels Apr 26, 2026
@trop

trop Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

@ckerr has manually backported this PR to "41-x-y", please check out #51321

codebytere pushed a commit that referenced this pull request Apr 27, 2026
fix: crash in AutofillPopup teardown (#51302)

Fix a crash in AutofillPopupView::Show() when the popup
tried to show itself after the parent's native view had
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.
@trop trop Bot added merged/41-x-y PR was merged to the "41-x-y" branch. and removed in-flight/41-x-y labels Apr 27, 2026
ckerr added a commit that referenced this pull request Apr 27, 2026
fix: crash in AutofillPopup teardown (#51302)

Fix a crash in AutofillPopupView::Show() when the popup
tried to show itself after the parent's native view had
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.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
@trop trop Bot added merged/40-x-y PR was merged to the "40-x-y" branch. and removed in-flight/40-x-y labels Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/40-x-y PR was merged to the "40-x-y" branch. merged/41-x-y PR was merged to the "41-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants