browser(firefox): ignore console events with attached exception (#10581)
This commit is contained in:
Родитель
ca1064e6c1
Коммит
08d31965c6
|
@ -1,2 +1,2 @@
|
|||
1305
|
||||
Changed: aslushnikov@gmail.com Thu Nov 11 15:24:13 HST 2021
|
||||
1306
|
||||
Changed: max@schmitt.mx Mon 29 Nov 2021 13:10:11 CET
|
||||
|
|
|
@ -129,7 +129,7 @@ class Runtime {
|
|||
|
||||
observe: message => {
|
||||
if (!(message instanceof Ci.nsIScriptError) || !message.outerWindowID ||
|
||||
!message.category || disallowedMessageCategories.has(message.category)) {
|
||||
!message.category || disallowedMessageCategories.has(message.category) || message.hasException) {
|
||||
return;
|
||||
}
|
||||
const errorWindow = Services.wm.getOuterWindowWithId(message.outerWindowID);
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
1306
|
||||
Changed: lushnikov@chromium.org Thu Nov 11 15:24:13 HST 2021
|
||||
1307
|
||||
Changed: max@schmitt.mx Mon 29 Nov 2021 13:10:11 CET
|
||||
|
|
|
@ -129,7 +129,7 @@ class Runtime {
|
|||
|
||||
observe: message => {
|
||||
if (!(message instanceof Ci.nsIScriptError) || !message.outerWindowID ||
|
||||
!message.category || disallowedMessageCategories.has(message.category)) {
|
||||
!message.category || disallowedMessageCategories.has(message.category) || message.hasException) {
|
||||
return;
|
||||
}
|
||||
const errorWindow = Services.wm.getOuterWindowWithId(message.outerWindowID);
|
||||
|
|
Загрузка…
Ссылка в новой задаче