browser(firefox): report errors from workers (#2797)

There is no exceptionFlag anymore, so we check the logLevel instead.
This commit is contained in:
Dmitry Gozman 2020-07-01 14:49:14 -07:00 committed by GitHub
parent c25fc4956d
commit 991e8d42c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1117
1118

View File

@ -132,7 +132,7 @@ class Runtime {
return;
}
const errorWindow = Services.wm.getOuterWindowWithId(message.outerWindowID);
if (message.category === 'Web Worker' && (message.flags & Ci.nsIScriptError.exceptionFlag)) {
if (message.category === 'Web Worker' && message.logLevel === Ci.nsIConsoleMessage.error) {
emitEvent(this.events.onErrorFromWorker, errorWindow, message.message, '' + message.stack);
return;
}