Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

investigate Firefox "debugger server" and Remote Debugging Protocol things #21

Open
deepsweet opened this issue Aug 15, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@deepsweet
Copy link
Owner

--start-debugger-server [ws:][ <port> | <path> ] Start the debugger server on
                     a TCP port or Unix domain socket path. Defaults to TCP port
                     6000. Use WebSocket protocol if ws: prefix is specified.
@deepsweet deepsweet added the help wanted Extra attention is needed label Aug 15, 2018
@deepsweet
Copy link
Owner Author

@deepsweet
Copy link
Owner Author

It's possible to change (per tab!) the following things using Remote Debugging Protocol (RDP):

  • network throttling
  • user agent
  • DPPX
  • touch events override

Unfortunately it seems to be impossible to control "viewport" like in Responsive Design Mode (RDM), it's done internally through manipulations of browser's "chrome" tool window:

this.toolWindow.setViewportSize(size);

It's not a part of the RDP.

So far I see 2 ways to get all the RDM functionality after switching to this._send('Marionette:SetContext', { value: 'chrome' }):

  1. simulate bunch of shortcuts/keypresses to control RDM elements – this seems to be flaky and fragile
  2. find out how to invoke ResponsiveUIManager() programmatically – it's bound to ctrl-shift-m somewhere in chrome context

@deepsweet deepsweet changed the title investigate Firefox "debugger server" thing investigate Firefox "debugger server" and Remote Debugging Protocol things Aug 25, 2018
@deepsweet deepsweet added the enhancement New feature or request label Aug 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant