Hello everyone,
I am pleased to announce that bug 1286281 [1] has finally landed in m-c and
the Firefox remote debugging server can now run over the WebSocket
protocol. The command line to start a WebSocket server is:
firefox-bin --start-debugger-server ws:6080
This removes a major roadblock to implementing the devtools frontend using
standard Web APIs, which don't have access to raw TCP sockets, but do
support the WebSocket protocol.
The debugger.html project already has an option to connect directly to the
WebSocket server and avoid the TCP/WS proxy [2].
My thanks go mainly to J. Ryan Stinnett, who helped me with the devtools
debugger transport code, and to Jonas Sicking and Andrea Marchesini, who
reviewed my changes to the WebSocket implemenation in Necko and its WebIDL
bindings.
Jarda
[1]
https://bugzilla.mozilla.org/show_bug.cgi?id=1286281
[2]
https://github.com/devtools-html/debugger.html/blob/master/config/development.json#L20