зеркало из https://github.com/mozilla/gecko-dev.git
Bug 784511 - ContentStart event never fires because reportCrash() throws an exception [r=hub]
This commit is contained in:
Родитель
a58e8ef9a9
Коммит
17c5631d8e
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче