Fixing passing capabilities that are not part of FirefoxOptions. They are needed for legacy Firefox driver.
@@ -458,7 +458,7 @@ public Capabilities toCapabilities() {
}
private Capabilities toCapabilities(Capabilities source) {
- HashMap<String, Object> caps = new HashMap<>();
+ HashMap<String, Object> caps = new HashMap<>(source.asMap());
if (isLegacy()) {
caps.put(FirefoxDriver.MARIONETTE, false);
