browser(firefox): dispatch console messages even if there are workers (#16068)
This commit is contained in:
parent
7d306bbc66
commit
d33455dcca
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue