Bug 867829 - Part 3: receive the delete-crash event to delete crash dump when user declined. r=fabrice

This commit is contained in:
Hubert Figuière 2013-05-10 17:39:15 -04:00
parent be0e9e9c74
commit 5e5747fe19

View File

@ -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);
}
});
});