From 5e5747fe191ccdb7c6b42d9a143c537e24577b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Fri, 10 May 2013 17:39:15 -0400 Subject: [PATCH] Bug 867829 - Part 3: receive the delete-crash event to delete crash dump when user declined. r=fabrice --- b2g/chrome/content/shell.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/b2g/chrome/content/shell.js b/b2g/chrome/content/shell.js index 7d0bbc26534..aed58851a1b 100644 --- a/b2g/chrome/content/shell.js +++ b/b2g/chrome/content/shell.js @@ -1103,7 +1103,11 @@ window.addEventListener('ContentStart', function cr_onContentStart() { let content = shell.contentBrowser.contentWindow; content.addEventListener("mozContentEvent", function cr_onMozContentEvent(e) { if (e.detail.type == "submit-crash" && e.detail.crashID) { + debugCrashReport("submitting crash at user request ", e.detail.crashID); shell.submitCrash(e.detail.crashID); + } else if (e.detail.type == "delete-crash" && e.detail.crashID) { + debugCrashReport("deleting crash at user request ", e.detail.crashID); + shell.deleteCrash(e.detail.crashID); } }); });