Skip to content

Commit 67dba3e

Browse files
committed
[java] Avoid checking for non W3C twice.
And `safari.options` is not a thing since a while ago.
1 parent 49ea73c commit 67dba3e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

java/src/org/openqa/selenium/MutableCapabilities.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public class MutableCapabilities implements Capabilities {
3737
keys.add("moz:firefoxOptions");
3838
keys.add("operaOptions");
3939
keys.add("se:ieOptions");
40-
keys.add("safari.options");
4140
OPTION_KEYS = Collections.unmodifiableSet(keys);
4241
}
4342

@@ -88,8 +87,6 @@ public void setCapability(String capabilityName, Platform value) {
8887
public void setCapability(String key, Object value) {
8988
Require.nonNull("Capability name", key);
9089

91-
W3CCapabilityKeysValidator.validateCapability(key);
92-
9390
// We have to special-case some keys and values because of the popular idiom of calling
9491
// something like "capabilities.setCapability(SafariOptions.CAPABILITY, new SafariOptions());"
9592
// and this is no longer needed as options are capabilities. There will be a large amount of

0 commit comments

Comments
 (0)