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

feat: Do not start crash reporter in renderer #290

Merged
merged 7 commits into from
Jan 25, 2021

Conversation

mitsuhiko
Copy link
Member

This disables the starting of the crash handler in the renderer process. This is necessary for it to work on Electron 12.

This still needs validation.

Fixes #229

Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, crashReporter is still defined, so you could just check for:

if (!crashReporter.start) return;

Overall approach LGTM. We still need to start the crash reporter in renderer processes in old versions to support Linux where Breakpad was (?) used for crash reporting. There is no harm to initializing the crash reporter in versions where the API is still available.

@HazAT HazAT merged commit fd17ce1 into master Jan 25, 2021
@HazAT HazAT deleted the feature/do-not-start-in-renderer branch January 25, 2021 10:34
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.

crashReporter is deprecated in renderer (9+) will be removed (12+)
3 participants