Bug 784511 - ContentStart event never fires because reportCrash() throws an exception [r=hub]

This commit is contained in:
Fabrice Desré 2012-08-21 15:29:46 -07:00
parent 3271d56c21
commit 305c7bcc68

View File

@ -64,8 +64,11 @@ var shell = {
},
reportCrash: function shell_reportCrash() {
let crashID = Cc["@mozilla.org/xre/app-info;1"]
.getService(Ci.nsIXULRuntime).lastRunCrashID;
let crashID;
try {
crashID = Cc["@mozilla.org/xre/app-info;1"]
.getService(Ci.nsIXULRuntime).lastRunCrashID;
} catch(e) { }
if (Services.prefs.getBoolPref('app.reportCrashes') &&
crashID) {
this.CrashSubmit().submit(crashID)