browser(firefox): dispatch console messages even if there are workers (#16068)

This commit is contained in:
Yury Semikhatsky 2022-07-29 16:56:17 -07:00 committed by GitHub
parent 7d306bbc66
commit d33455dcca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -1,2 +1,2 @@
1337
Changed: yurys@chromium.org Thu Jul 28 13:35:27 PDT 2022
1338
Changed: yurys@chromium.org Fri Jul 29 16:52:50 PDT 2022

View File

@ -123,7 +123,7 @@ class PageHandler {
pageWorkerDestroyed: this._onWorkerDestroyed.bind(this),
runtimeConsole: params => {
const consoleMessageHash = hashConsoleMessage(params);
for (const worker of this._workers) {
for (const worker of this._workers.values()) {
if (worker._workerConsoleMessages.has(consoleMessageHash)) {
worker._workerConsoleMessages.delete(consoleMessageHash);
return;

View File

@ -1,2 +1,2 @@
1338
Changed: lushnikov@chromium.org Fri 29 Jul 2022 05:20:32 AM PDT
1339
Changed: yurys@chromium.org Fri Jul 29 16:50:33 PDT 2022

View File

@ -123,7 +123,7 @@ class PageHandler {
pageWorkerDestroyed: this._onWorkerDestroyed.bind(this),
runtimeConsole: params => {
const consoleMessageHash = hashConsoleMessage(params);
for (const worker of this._workers) {
for (const worker of this._workers.values()) {
if (worker._workerConsoleMessages.has(consoleMessageHash)) {
worker._workerConsoleMessages.delete(consoleMessageHash);
return;