diff --git a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java index 707fb33e74..0797dcf533 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java @@ -584,6 +584,27 @@ private void checkForCrash() { } } + private void handleContentCrashIntent(@NonNull final Intent intent) { + Log.e(LOGTAG, "Got content crashed intent"); + final String dumpFile = intent.getStringExtra(GeckoRuntime.EXTRA_MINIDUMP_PATH); + final String extraFile = intent.getStringExtra(GeckoRuntime.EXTRA_EXTRAS_PATH); + Log.d(LOGTAG, "Dump File: " + dumpFile); + Log.d(LOGTAG, "Extras File: " + extraFile); + Log.d(LOGTAG, "Fatal: " + intent.getBooleanExtra(GeckoRuntime.EXTRA_CRASH_FATAL, false)); + + @Override + public void onDoNotSendData() { + for (String file : files) { + Log.e(LOGTAG, "Deleting crashfile: " + file); + getBaseContext().deleteFile(file); + } + } + } + ); + mCrashDialog.show(UIWidget.REQUEST_FOCUS); + } + } + private void handleContentCrashIntent(@NonNull final Intent intent) { Log.e(LOGTAG, "Got content crashed intent"); final String dumpFile = intent.getStringExtra(GeckoRuntime.EXTRA_MINIDUMP_PATH);