servo / servo/servo

Check if calling postMessage from the worker JS console in devtools panics

Open
#6,972 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.