Skip to content

Devtools plans

Josh Matthews edited this page Jul 24, 2015 · 6 revisions

Design

Devtools task:

  • loops accepting connections, spawns a new task for each client
  • home of actor registry - hashmap of actor IDs (strings like "tab1") to boxed Actor traits that can be cast to concrete actor types encapsulating immutable state

Devtools client task:

Script task:

Architecture

  • Devtools->Script messages defined in a new devtools_traits crate that script/devtools depend upon
  • Constellation provides optional devtools receiver to each new script task
  • Script task notifies devtools task of each new global created (need bidirectional communication)
  • Constellation creates new actor for each global, removes actor when global disappears

Miscellaneous, useful projects

Useful links

https://developer.mozilla.org/en-US/docs/Tools/Web_Console/remoting https://wiki.mozilla.org/Remote_Debugging_Protocol_Stream_Transport https://wiki.mozilla.org/Remote_Debugging_Protocol

Clone this wiki locally