Skip to content

Commit

Permalink
Merge r222204 - WebDriver: wrong key name for capabilities in new ses…
Browse files Browse the repository at this point in the history
…sion response

https://bugs.webkit.org/show_bug.cgi?id=177074

Reviewed by Brian Burg.

We are using "value", it should be "capabilities".
https://w3c.github.io/webdriver/webdriver-spec.html#new-session

* WebDriverService.cpp:
(WebDriver::WebDriverService::newSession):
  • Loading branch information
carlosgcampos committed Oct 16, 2017
1 parent 09aa896 commit 7104353
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Source/WebDriver/ChangeLog
@@ -1,3 +1,16 @@
2017-09-18 Carlos Garcia Campos <cgarcia@igalia.com>

WebDriver: wrong key name for capabilities in new session response
https://bugs.webkit.org/show_bug.cgi?id=177074

Reviewed by Brian Burg.

We are using "value", it should be "capabilities".
https://w3c.github.io/webdriver/webdriver-spec.html#new-session

* WebDriverService.cpp:
(WebDriver::WebDriverService::newSession):

2017-09-18 Carlos Garcia Campos <cgarcia@igalia.com>

WebDriver: HTTP responses should include Cache-Control header with no-cache value
Expand Down
2 changes: 1 addition & 1 deletion Source/WebDriver/WebDriverService.cpp
Expand Up @@ -625,7 +625,7 @@ void WebDriverService::newSession(RefPtr<InspectorObject>&& parameters, Function
break;
}
}
resultObject->setObject(ASCIILiteral("value"), WTFMove(capabilitiesObject));
resultObject->setObject(ASCIILiteral("capabilities"), WTFMove(capabilitiesObject));
completionHandler(CommandResult::success(WTFMove(resultObject)));
});
});
Expand Down

0 comments on commit 7104353

Please sign in to comment.