Closed
Bug 899971
Opened 12 years ago
Closed 6 years ago
DebuggerServer.onSocketAccepted should take an async allow callback
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: liuche, Unassigned)
References
(Blocks 1 open bug)
Details
http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/main.js#437
The allow callback might very well take user input, so it doesn't make sense for the debugger service to require a synchronous callback and offload response waiting to the caller.
Reporter | ||
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Reporter | ||
Comment 1•12 years ago
|
||
Relevant snippet:
> onSocketAccepted:
> makeInfallible(function DS_onSocketAccepted(aSocket, aTransport) {
> if (promptConnections && !this._allowConnection()) {
> return;
> }
Or as mentioned earlier, use Promises instead.
Updated•11 years ago
|
Priority: -- → P3
Comment 2•11 years ago
|
||
+1 for promises since the debugger server has embraced them for the most part
Updated•11 years ago
|
Blocks: tb-debugger
Updated•10 years ago
|
Blocks: dbg-server
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 3•6 years ago
|
||
nolonger relevant
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•