diff --git a/java/server/src/org/openqa/selenium/remote/server/FirefoxDriverProvider.java b/java/server/src/org/openqa/selenium/remote/server/FirefoxDriverProvider.java index 2231d15738137..6cfc1f7c5ed7a 100644 --- a/java/server/src/org/openqa/selenium/remote/server/FirefoxDriverProvider.java +++ b/java/server/src/org/openqa/selenium/remote/server/FirefoxDriverProvider.java @@ -28,7 +28,7 @@ import java.util.logging.Logger; /** - * This driver provider that instantiates FirefoxDriver or MarionetteDriver. + * This driver provider that instantiates FirefoxDriver. */ public class FirefoxDriverProvider implements DriverProvider { @@ -61,10 +61,6 @@ public boolean canCreateDriverInstanceFor(Capabilities capabilities) { @Override public WebDriver newInstance(Capabilities capabilities) { LOG.info("Creating a new session for " + capabilities); - Object marionette = capabilities.getCapability("marionette"); - if (marionette != null && Boolean.valueOf(marionette.toString())) { - return callConstructor("org.openqa.selenium.firefox.MarionetteDriver", capabilities); - } return callConstructor("org.openqa.selenium.firefox.FirefoxDriver", capabilities); }