Skip to content

Allow devtools to communicate with workers #6767

Closed

Description

@jdm

Right now we create a channel that the devtools can send things to, but we ignore the receiver and the worker does not watch for messages: http://mxr.mozilla.org/servo/source/components/script/dom/worker.rs#81

We should store the receiver in the new WorkerGlobalScope that gets created, and have DedicatedWorkerGlobalScope::run_worker_scope change from matching on a single receiver to selecting over two of them (using ScriptTask::handle_msgs as inspiration: http://mxr.mozilla.org/servo/source/components/script/script_task.rs#635).

The ultimate end goal here is to be able to evaluate JS in the worker scope by processing the message appropriately like http://mxr.mozilla.org/servo/source/components/script/devtools.rs#28 .

Activity

  1. added
    A-content/dom
    E-more-complex
    on Jul 25, 2015
  2. added 4 commits that reference this issue on Aug 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domA-devtoolsE-more-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions