Bug 1118313 - newSession looks for non-conforming session_id property on Command. r=dburns

This commit is contained in:
Giovanny Andres Gongora Granada 2015-03-23 19:56:00 -04:00
parent 069c04aa26
commit 76240ff56b

View File

@ -625,7 +625,7 @@ MarionetteServerConnection.prototype = {
this.scriptTimeout = 10000;
if (aRequest && aRequest.parameters) {
this.sessionId = aRequest.parameters.sessionId || aRequest.parameters.session_id || null;
this.sessionId = aRequest.parameters.sessionId ? aRequest.parameters.sessionId : aRequest.parameters.session_id;
logger.info("Session Id is set to: " + this.sessionId);
try {
this.setSessionCapabilities(aRequest.parameters.capabilities);