mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784511 - ContentStart event never fires because reportCrash() throws an exception [r=hub]
This commit is contained in:
parent
3271d56c21
commit
305c7bcc68
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user