mozilla/r2d2b2g — pull request #567 by ochameau (2013-05-27 17:01:34+00:00)
Title: Bypass devtools connect page by automatically connecting to shell.xul.

Here is a patch to bypass the connect page.
It uses the existing remote connection to open a toolbox connected to toplevel shell.xul document. As far as I can tell that's the only target that is confirmed to work.

This patch isn't perfect as it kills the possibility to select another context other than shell.xul, but given that we can't select anything else, it would still be an incremental improvement.

The only issue is that it depends on a feature introduced in platform bug https://bugzilla.mozilla.org/show_bug.cgi?id=875104
Without this, the remote connection will be automatically closed when the user closes the toolbox. We can workaround this by using a new remote connection just for the toolbox, but I'd prefer keeping only one shared connection to avoid introducing bugs related to connection issues.
To ease that, I can easily factor out the toolbox "keepTargetAlive" feature, in order to land this feature and eventually uplift it.
In anycase, this feature would only exists in FF23/24.

Otherwise, there is various things to do after that:
* Open the toolbox in the same window, as a regular devtool toolbox
* Fix webapps actor to list apps actors and be able to target a given app context
* Add UI in the dashboard to connect to a precise app