Bug 1032128 - Receive extended authResult from Gaia. r=janx

This commit is contained in:
J. Ryan Stinnett 2015-03-12 17:52:38 -05:00
parent fbdc2f4a4b
commit 70f822715a

View File

@ -59,7 +59,11 @@ let RemoteDebugger = {
this._handleAllowResult = detail => {
this._handleAllowResult = null;
this._promptingForAllow = null;
if (detail.value) {
// Newer Gaia supplies |authResult|, which is one of the
// AuthenticationResult values.
if (detail.authResult) {
resolve(detail.authResult);
} else if (detail.value) {
resolve(DebuggerServer.AuthenticationResult.ALLOW);
} else {
resolve(DebuggerServer.AuthenticationResult.DENY);