Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
For #3074 - Also report to Socorro
Browse files Browse the repository at this point in the history
  • Loading branch information
boek committed Nov 9, 2018
1 parent 8154a5b commit b87d356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.content.Context
import android.os.Build
import mozilla.components.lib.crash.Crash
import mozilla.components.lib.crash.CrashReporter
import mozilla.components.lib.crash.service.MozillaSocorroService
import mozilla.components.lib.crash.service.SentryService
import org.mozilla.focus.BuildConfig
import org.mozilla.focus.locale.LocaleManager
Expand Down Expand Up @@ -38,7 +39,9 @@ object CrashReporterWrapper {
SentryService(
context,
sentryDsn,
tags = createTags(context))
tags = createTags(context),
sendEventForNativeCrashes = true),
MozillaSocorroService(context, "Firefox Focus")
)).install(context)

onIsEnabledChanged(context)
Expand All @@ -61,9 +64,4 @@ object CrashReporterWrapper {
Locale.getDefault().toLanguageTag()
}
}

fun captureGeckoCrash() {
// crashReporter?.submitReport(Crash())
// .capture("GeckoSession crashes, opening new session")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ class GeckoWebViewProvider : IWebViewProvider {

override fun onCrash(session: GeckoSession) {
Log.i(TAG, "Crashed, opening new session")
CrashReporterWrapper.captureGeckoCrash()
geckoSession.close()
geckoSession = createGeckoSession()
applySettingsAndSetDelegates()
Expand Down

0 comments on commit b87d356

Please sign in to comment.