[ChromeDriver] Implements ExecuteAsyncScript promise-handling.
Handles promises according to W3C-spec (https://w3c.github.io/webdriver/#execute-async-script) for asynchronous user scripts. This removes the global "result" object that contains results of the latest script to execute and allows for scripts to wait until results are ready before returning (instead of polling for results after the script completes). run_py_tests.py. Tested: WPTs webdriver/test/execute_async_script, and python Bug: chromedriver:2398 Change-Id: I9f6cdeb5b3e93fcfd3e63090ce8b3aed275d71be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636627 Commit-Queue: Rohan Pavone <rohpavone@chromium.org> Reviewed-by:John Chen <johnchen@chromium.org> Reviewed-by:
Caleb Rouleau <crouleau@chromium.org> Cr-Commit-Position: refs/heads/master@{#665589}
Showing
Please register or sign in to comment