Commit 3486b4f1 authored by Julian Kung's avatar Julian Kung Committed by Commit Bot

[ChromeDriver] Modify condition for turning off W3C mode

Previously, W3C mode would be turned off if no capabilities were found.
This changelist changes this behavior so that W3C mode is turned off if
both no capabilities are found and there exists desiredCapabilities. This
change is necessary to be W3C compliant as the change allows two WPT tests
to pass: test_no_capabilities and test_desired

R=johnchen@chromium.org

Bug: chromedriver:3013
Change-Id: I8c088bd0a15cd3be9a0a41e80fdc4c40808fa0a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1698862Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Julian Kung <juliankung@google.com>
Cr-Commit-Position: refs/heads/master@{#676647}
parent 7b722742
......@@ -111,7 +111,7 @@ bool GetW3CSetting(const base::DictionaryValue& params) {
}
}
if (!params.HasKey("capabilities")) {
if (!params.HasKey("capabilities") && params.HasKey("desiredCapabilities")) {
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment