commit | 45c0029def3706a9b37b9fc5b0e83386749a10c1 | [log] [tgz] |
---|---|---|
author | John Chen <johnchen@chromium.org> | Wed Dec 20 20:42:37 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Dec 20 20:42:37 2017 |
tree | c889040f87dda94b77d74dc1ffaaf292d6a4ca2a | |
parent | 369fae2d336df5c39ecf26e9f896e54ab1e2bdbf [diff] |
[ChromeDriver] Fix ExecuteScript when script returns no result V8 CL https://crrev.com/c/834669 changed the behavior of the JavaScript engine. When it evaluates a script that returns no result, the result object no longer contains a 'value' property, while previously, the result contained a 'value' property with a value of null. After this CL was merged into Chromium as https://crrev.com/525272, ChromeDriver generates an error when it can't find the 'value' property. This CL modifies ChromeDriver to recognize that 'value' is optional. Bug: chromedriver:2191 Change-Id: I3cf65fb5824c161f3b1b0d982884d070a4a76b41 Reviewed-on: https://chromium-review.googlesource.com/837488 Reviewed-by: Jonathon Kereliuk <kereliuk@chromium.org> Commit-Queue: Jonathon Kereliuk <kereliuk@chromium.org> Commit-Queue: John Chen <johnchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#525440}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .