Open Bug 1563470 Opened 5 years ago Updated 2 years ago

Display DevTools protocol websocket request in Browser Toolbox

Categories

(DevTools :: Netmonitor, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 2 open bugs)

Details

Since we are now building a WebSocket inspector in the netmonitor, we could take advantage of this to "re-create" the RDP inspector in the browser toolbox.
I'm not sure what's needed to support this, so feel free to remove it from the blocker list of Bug 885508

Hi Nicolas, this bug is related to supporting RDP inspection in the browser toolbox. But I think we can't see any RDP requests in the browser toolbox's netmonitor now. Are you able to verify this?

Flags: needinfo?(nchevobbe)

yes, we don't see it yet.
Honza or Alex may know what it would take? That would be super nice as it would help us dogfood the websocket monitor + bring a replacement for the rdp inspector extension we had a few years back.

Flags: needinfo?(poirot.alex)
Flags: needinfo?(odvarko)
Flags: needinfo?(nchevobbe)

(In reply to Nicolas Chevobbe [:nchevobbe] from comment #2)

That would be super nice as it would help us dogfood the websocket monitor + bring a replacement for the rdp inspector extension we had a few years back.

Ah, yeah, that's my dream!

Alex, could the problem be that we start the HTTP observers too late?

Honza

Flags: needinfo?(odvarko)

We are not using WebSocket by default for DevTools:

  • Web toolboxes are using the message manager. (=no network)
  • Remote toolboxes connecting to Android via about:debugging are using adb and unix sockets. (=no network)
  • The browser toolbox and remote toolbox of about:debugging using network addresses are using a TCP server.
  • Launchpad may be using WebSockets by default?

You can start a WebSocket server via this command line argument:
https://searchfox.org/mozilla-central/source/devtools/startup/DevToolsStartup.jsm#978-979
But then, I don't think about:debugging supports connecting to a WebSocket server.
It shouldn't be too hard to fix about:debugging...

Flags: needinfo?(poirot.alex)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.