Closed Bug 899971 Opened 12 years ago Closed 6 years ago

DebuggerServer.onSocketAccepted should take an async allow callback

Categories

(DevTools :: Debugger, defect, P3)

defect

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.
OS: Mac OS X → All
Hardware: x86 → All
Relevant snippet: > onSocketAccepted: > makeInfallible(function DS_onSocketAccepted(aSocket, aTransport) { > if (promptConnections && !this._allowConnection()) { > return; > } Or as mentioned earlier, use Promises instead.
Priority: -- → P3
+1 for promises since the debugger server has embraced them for the most part
Blocks: dbg-server
Product: Firefox → DevTools

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.