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

Don't load URL if web contents is destroyed #8254

Merged
merged 2 commits into from
Dec 28, 2016

Conversation

kevinsawicki
Copy link
Contributor

Closing a window from a will-navigate listener but not calling event.preventDefault() would crash the app because the URL would continue to load in a destroyed web contents.

This adds a check to see if the web contents was marked as destroyed after the will-navigate event is emitted.

Closes #4374

@kevinsawicki kevinsawicki force-pushed the webcontents-will-navigate-crash branch 3 times, most recently from 9e76ac1 to f1668b8 Compare December 22, 2016 17:35
@kevinsawicki kevinsawicki force-pushed the webcontents-will-navigate-crash branch from f1668b8 to abea119 Compare December 28, 2016 21:40
@kevinsawicki kevinsawicki merged commit bc39964 into master Dec 28, 2016
@kevinsawicki kevinsawicki deleted the webcontents-will-navigate-crash branch December 28, 2016 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant