Skip to content

Commit d7cf7a9

Browse files
committed
[java] Removing deprecated SessionStorage commands from FirefoxDriver
Related to #10397
1 parent de86899 commit d7cf7a9

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

java/src/org/openqa/selenium/firefox/FirefoxDriver.java

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,11 @@
3737
import org.openqa.selenium.bidi.BiDi;
3838
import org.openqa.selenium.bidi.BiDiException;
3939
import org.openqa.selenium.bidi.HasBiDi;
40-
import org.openqa.selenium.html5.LocalStorage;
41-
import org.openqa.selenium.html5.SessionStorage;
42-
import org.openqa.selenium.html5.WebStorage;
4340
import org.openqa.selenium.internal.Require;
4441
import org.openqa.selenium.remote.CommandInfo;
4542
import org.openqa.selenium.remote.FileDetector;
4643
import org.openqa.selenium.remote.RemoteWebDriver;
4744
import org.openqa.selenium.remote.RemoteWebDriverBuilder;
48-
import org.openqa.selenium.remote.html5.RemoteWebStorage;
4945
import org.openqa.selenium.remote.http.ClientConfig;
5046
import org.openqa.selenium.remote.http.HttpClient;
5147
import org.openqa.selenium.remote.service.DriverCommandExecutor;
@@ -68,11 +64,10 @@
6864
* </pre>
6965
*/
7066
public class FirefoxDriver extends RemoteWebDriver
71-
implements WebStorage, HasExtensions, HasFullPageScreenshot, HasContext, HasBiDi {
67+
implements HasExtensions, HasFullPageScreenshot, HasContext, HasBiDi {
7268

7369
private static final Logger LOG = Logger.getLogger(FirefoxDriver.class.getName());
7470
private final Capabilities capabilities;
75-
private final RemoteWebStorage webStorage;
7671
private final HasExtensions extensions;
7772
private final HasFullPageScreenshot fullPageScreenshot;
7873
private final HasContext context;
@@ -140,7 +135,6 @@ private FirefoxDriver(FirefoxDriverCommandExecutor executor, FirefoxOptions opti
140135
private FirefoxDriver(
141136
FirefoxDriverCommandExecutor executor, FirefoxOptions options, ClientConfig clientConfig) {
142137
super(executor, checkCapabilitiesAndProxy(options));
143-
webStorage = new RemoteWebStorage(getExecuteMethod());
144138
extensions = new AddHasExtensions().getImplementation(getCapabilities(), getExecuteMethod());
145139
fullPageScreenshot =
146140
new AddHasFullPageScreenshot().getImplementation(getCapabilities(), getExecuteMethod());
@@ -201,18 +195,6 @@ public void setFileDetector(FileDetector detector) {
201195
+ "via RemoteWebDriver");
202196
}
203197

204-
@Override
205-
@Deprecated
206-
public LocalStorage getLocalStorage() {
207-
return webStorage.getLocalStorage();
208-
}
209-
210-
@Override
211-
@Deprecated
212-
public SessionStorage getSessionStorage() {
213-
return webStorage.getSessionStorage();
214-
}
215-
216198
@Override
217199
public String installExtension(Path path) {
218200
Require.nonNull("Path", path);

0 commit comments

Comments
 (0)