Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent double-destroy of window #16472

Merged
merged 1 commit into from Jan 21, 2019
Merged

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Jan 21, 2019

Description of Change

Fix #16202.

On some machines it may happen that the window gets destroyed for twice, and checking web_contents() can effectively guard against that.

I could not find out the root cause as I could not reproduce the crash on my machine, but as discussed in the original issue, this fix can solve the crash, and I don't see any bad side effect.

Release Notes

Notes: Fix crash when closing popup windows.

@zcbenz zcbenz requested a review from a team January 21, 2019 02:30
@release-clerk
Copy link

release-clerk bot commented Jan 21, 2019

Release Notes Persisted

Fix crash when closing popup windows.

@MarshallOfSound MarshallOfSound deleted the fix-window-close-crash branch January 21, 2019 22:56
@trop
Copy link
Contributor

trop bot commented Jan 21, 2019

I have automatically backported this PR to "4-0-x", please check out #16478

akisctx pushed a commit to akisctx/electron that referenced this pull request Jan 22, 2019
@alexeykuzmin
Copy link
Contributor

/trop run backport

@trop
Copy link
Contributor

trop bot commented Jan 23, 2019

The backport process for this PR has been manually initiated, here we go! :D

@trop
Copy link
Contributor

trop bot commented Jan 23, 2019

I have automatically backported this PR to "3-1-x", please check out #16512

@sofianguy sofianguy added this to Fixed in 3.1.2 in 3.1.x Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
3.1.x
Fixed in 3.1.2
Development

Successfully merging this pull request may close these issues.

Crash: Electron version greater than v3.0.5 crashes with EXC_BAD_ACCESS
4 participants