Closed Bug 1818228 Opened 1 year ago Closed 1 year ago

ChromeWorker console.log messages are duplicated

Categories

(DevTools :: Console, defect)

defect

Tracking

(firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: gregtatum, Assigned: nchevobbe)

Details

Attachments

(1 file)

I am building out a new ChromeWorker, and it is using console.log for debugging. The messages coming out from the worker are being duplicated. I verified that they were duplicated by putting a Math.random in the log, and the value was shared across all messages, indicating that I was only calling console.log once, but the messages were being duplicated.

Those message could be evaluated by WindowGlobal targets living in
parent process (e.g. about:robots).
A test case is added to ensure we don't regress this.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Attachment #9319636 - Attachment description: WIP: Bug 1818228 - [devtools] Don't send ChromeWorker messages to WindowGlobal targets. → Bug 1818228 - [devtools] Don't send ChromeWorker messages to WindowGlobal targets.
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/665982b5d5e9
[devtools] Don't send ChromeWorker messages to WindowGlobal targets. r=devtools-reviewers,bomsy
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: