Closed Bug 1009521 Opened 11 years ago Closed 10 years ago

Auto-allow connections on B2G (for tools)

Categories

(Firefox OS Graveyard :: Developer Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jujjyl, Unassigned)

References

Details

On the T2 Mobile B2G 1.4.0.0 reference phone, I always get the "An incoming request to permit remote debugging connection was detected. Allow connection?" message box pop up when I am connecting app manager or a command line debugger to the phone. This is impacting my workflow considerably and it breaks unattended command line automation tasks from running. How can I auto-accept debugging connections like it used to be with B2G 1.2 so that I don't have to manually accept the connection each time?
Who should I bug about this? This is a critical blocker for automating unit testing support from command line and we are not able to proceed here the way the request dialog is currently laid out.
There is a preference for that: devtools.debugger.prompt-connection to set to false. Either flash gaia with DEVICE_DEBUG=1 (disable lockscreen, enable certified/chrome debugger, disable the prompt), or put this pref manually via ./edit-prefs.sh within B2G repo, or put it yourself via adb shell by editing /data/local/user.js.
Please fill any bug related to devtools into Devtools, and if that's related to b2g, the best component is often App manager. (Note also the existance of a Simulator component)
Component: General → Simulator
Component: Simulator → Developer Tools
Product: Firefox OS → Firefox
Thanks! That works well as a workaround for our purpose! In the long term, it would be good to have a dialog "always accept for this host" like Android has, since setting the pref will allow all debug connections and weaken security.
A related discussion is going on in bug 1013379 (however, that bug is about desktop Firefox connecting locally only for use with the Browser Toolbox).
Summary: How to always-enable the debugging connection acknowledgement? → Auto-allow connections on B2G (for tools)
Product: Firefox → Firefox OS
Comment 2 describes a good solution for automation environments. Mark this bug as WORKSFORME for this case. For the ability as an end user to always allow a host from a UI, this discussion will continue in bug 1032128.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.