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 1338
Changed: yurys@chromium.org Thu Jul 28 13:35:27 PDT 2022 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), pageWorkerDestroyed: this._onWorkerDestroyed.bind(this),
runtimeConsole: params => { runtimeConsole: params => {
const consoleMessageHash = hashConsoleMessage(params); const consoleMessageHash = hashConsoleMessage(params);
for (const worker of this._workers) { for (const worker of this._workers.values()) {
if (worker._workerConsoleMessages.has(consoleMessageHash)) { if (worker._workerConsoleMessages.has(consoleMessageHash)) {
worker._workerConsoleMessages.delete(consoleMessageHash); worker._workerConsoleMessages.delete(consoleMessageHash);
return; return;

View file

@ -1,2 +1,2 @@
1338 1339
Changed: lushnikov@chromium.org Fri 29 Jul 2022 05:20:32 AM PDT 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), pageWorkerDestroyed: this._onWorkerDestroyed.bind(this),
runtimeConsole: params => { runtimeConsole: params => {
const consoleMessageHash = hashConsoleMessage(params); const consoleMessageHash = hashConsoleMessage(params);
for (const worker of this._workers) { for (const worker of this._workers.values()) {
if (worker._workerConsoleMessages.has(consoleMessageHash)) { if (worker._workerConsoleMessages.has(consoleMessageHash)) {
worker._workerConsoleMessages.delete(consoleMessageHash); worker._workerConsoleMessages.delete(consoleMessageHash);
return; return;