Check if calling postMessage from the worker JS console in devtools panics
Open
Nobody has claimed this yet.
A-content/dom
A-devtools
I-panic
- Dominant language
- Rust
- Stars
- 38k
- Forks
- 3.8k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 465
Description
I am highly suspicious that it does, because the messages received by the devtools receiver don't include a TrustedWorkerAddress and therefore the unwrap in DedicatedWorkerGlobalScope fails because we don't have an AutoWorkerReset object on the stack.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by calling postMessage from the worker JavaScript console in devtools. Trace how the devtools receiver handles messages without a TrustedWorkerAddress, then inspect the DedicatedWorkerGlobalScope unwrap and AutoWorkerReset assumptions. Done means the behavior is confirmed and the worker no longer panics when this call is made.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, rust
- Domain
- devtools, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100