diff --git a/testing/marionette/driver.js b/testing/marionette/driver.js index a0afdb2a1e40..65e8c95637f0 100644 --- a/testing/marionette/driver.js +++ b/testing/marionette/driver.js @@ -622,6 +622,7 @@ GeckoDriver.prototype.setSessionCapabilities = function(newCaps) { case "desiredCapabilities": to = copy(from[key], to); break; + case "requiredCapabilities": if (from[key].proxy) { this.setUpProxy(from[key].proxy); @@ -631,16 +632,17 @@ GeckoDriver.prototype.setSessionCapabilities = function(newCaps) { for (let caps in from[key]) { if (from[key][caps] !== this.sessionCapabilities[caps]) { errors.push(from[key][caps] + " does not equal " + - this.sessionCapabilities[caps]) ; + this.sessionCapabilities[caps]); } } break; + default: to[key] = from[key]; } } - if (Object.keys(errors).length === 0) { + if (Object.keys(errors).length == 0) { return to; }