зеркало из 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() {
|
reportCrash: function shell_reportCrash() {
|
||||||
let crashID = Cc["@mozilla.org/xre/app-info;1"]
|
let crashID;
|
||||||
.getService(Ci.nsIXULRuntime).lastRunCrashID;
|
try {
|
||||||
|
crashID = Cc["@mozilla.org/xre/app-info;1"]
|
||||||
|
.getService(Ci.nsIXULRuntime).lastRunCrashID;
|
||||||
|
} catch(e) { }
|
||||||
if (Services.prefs.getBoolPref('app.reportCrashes') &&
|
if (Services.prefs.getBoolPref('app.reportCrashes') &&
|
||||||
crashID) {
|
crashID) {
|
||||||
this.CrashSubmit().submit(crashID)
|
this.CrashSubmit().submit(crashID)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче