Closed
Bug 883931
Opened 11 years ago
Closed 6 years ago
DebuggerClient.prototype.connect may never call callback
Categories
(DevTools :: Debugger, defect, P4)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: nick, Unassigned)
References
Details
We use this in the simulator for pushing apps to device. The only issue is that sometimes the push fails due to lack of connection, but we don't notify the user. I'm working to add support for that. [1] I've noticed that the failures occur when we try to call DebuggerClient.prototype.connect. [2] The callback is never invoked when the connection fails, which is unfortunate because we're trying to resolve or reject a promise in the callback. I was going to add a timer that automatically rejects the promise unless the connection succeeds, but it would be nice if the connect function took and error callback invoked the callback with an error object, since timeouts are super brittle. [3] [1] https://github.com/mozilla/r2d2b2g/issues/593 [2] https://github.com/mozilla/r2d2b2g/blob/add6f06a2444ef4b3dad35a4bb7a6be7a4869503/addon/lib/debugger.js#L50 [3] http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/client/dbg-client.jsm#337
Reporter | ||
Comment 1•11 years ago
|
||
*but it would be nice if the connect function took an error callback or invoked the callback with an error object*
Comment 2•11 years ago
|
||
What about listening for `close` event, does it fire in case of timeout/connection issue?
Reporter | ||
Comment 3•11 years ago
|
||
I tried passing a callback to (new DebuggerClient(...)).onClosed but it was never called.
Updated•11 years ago
|
Component: Developer Tools → Developer Tools: Debugger
Updated•11 years ago
|
Priority: -- → P2
Updated•10 years ago
|
Blocks: dbg-client
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 4•6 years ago
|
||
Closing this bug because we're currently moving away from clients in favor of fronts / protocol.js
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Priority: P2 → P4
You need to log in
before you can comment on or make changes to this bug.
Description
•