Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Crash reporting toggle renderer #4606

Merged
merged 9 commits into from
Oct 10, 2016
Merged

Conversation

aekeus
Copy link
Member

@aekeus aekeus commented Oct 7, 2016

Add crash reporting toggle to advanced preferences

This handles main process crashes and renderer crashes on osx

Fixes: #4479

Test Plan:

  • Navigate to Preferences > Advanced
    • Toggle crash reporting to off (restart browser)
    • Load browser and select crash from debug menu
      -> Confirm crash report NOT sent to stats.brave.com
    • Load browser and navigate to Preferences > Advanced
    • Toggle crash reporting to on (restart browser)
    • Load browser and select crash from debug menu
      -> Confirm crash report SENT to stats.brave.com

aekeus added 8 commits October 6, 2016 13:26
  * Add toggle in advanced preferences to enable or disable crash reporting
  * Enable crash reporting on startup if preferences selected

Auditors: @bbondy

Test Plan:

  * Navigate to Preferences > Advanced
  * Toggle crash reporting to off (restart browser)
  * Load browser and select crash from debug menu
    -> Confirm crash report NOT sent to stats.brave.com
  * Load browser and navigate to Preferences > Advanced
  * Toggle crash reporting to on (restart browser)
  * Load browser and select crash from debug menu
    -> Confirm crash report SENT to stats.brave.com
  * Enable crash reporting on undefined or true value in setting
  * Update state documentation

Auditors: @bbondy

Test Plan:

  In previous commit
  * Add toggle in advanced preferences to enable or disable crash reporting
  * Enable crash reporting on startup if preferences selected

Auditors: @bbondy

Test Plan:

  * Navigate to Preferences > Advanced
  * Toggle crash reporting to off (restart browser)
  * Load browser and select crash from debug menu
    -> Confirm crash report NOT sent to stats.brave.com
  * Load browser and navigate to Preferences > Advanced
  * Toggle crash reporting to on (restart browser)
  * Load browser and select crash from debug menu
    -> Confirm crash report SENT to stats.brave.com
  * Enable crash reporting on undefined or true value in setting
  * Update state documentation

Auditors: @bbondy

Test Plan:

  In previous commit
  * Turn on renderer crash handling if selected in preferences and the platform is darwin

Auditors: @bbondy, @bridiver

Test Plan:

  In previous commit
@aekeus aekeus added this to the 0.12.5dev milestone Oct 7, 2016
@aekeus aekeus self-assigned this Oct 7, 2016
// Setup the crash handling for mac renderer processes
// https://github.com/electron/electron/blob/master/docs/api/crash-reporter.md#crashreporterstartoptions
console.log('macOS renderer crash reporting initialized')
require('../app/crash-herald').init()
Copy link
Member

Choose a reason for hiding this comment

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

This file should probably go in app/common/crash-herald, but that doesn't block this review.

@bbondy
Copy link
Member

bbondy commented Oct 10, 2016

++

@cndouglas cndouglas deleted the crash-reporting-toggle-renderer branch January 28, 2017 07:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants