Skip to content

Commit

Permalink
[java] Avoid checking for non W3C twice.
Browse files Browse the repository at this point in the history
And `safari.options` is not a thing since
a while ago.
  • Loading branch information
diemol committed May 30, 2022
1 parent 49ea73c commit 67dba3e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions java/src/org/openqa/selenium/MutableCapabilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class MutableCapabilities implements Capabilities {
keys.add("moz:firefoxOptions");
keys.add("operaOptions");
keys.add("se:ieOptions");
keys.add("safari.options");
OPTION_KEYS = Collections.unmodifiableSet(keys);
}

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

W3CCapabilityKeysValidator.validateCapability(key);

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

0 comments on commit 67dba3e

Please sign in to comment.