commit | f226daab2d3f3694d0c45a8c53e0ee61ac2ddf0c | [log] [tgz] |
---|---|---|
author | Stanley Hon <stahon@microsoft.com> | Fri Jul 19 00:23:14 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jul 19 00:23:14 2019 |
tree | f95c79abeb97831af5a657b9e95df623f9d49ee2 | |
parent | b4339047ada86544546016addba0dd1e9dc32095 [diff] |
[ChromeDriver] Update sendKeysToElement focus behavior when targeting contenteditable element. This change updates chromedriver to call focus.js if the element is a non-text element. This is specifically to fix some cases where browser based text editors use <body contenteditable=true> to create a text area of sorts. Before this change, but after https://crrev.com/674640, we were not resetting focus to the body element as it was considered already focused. This results in sendkeys being lost. We now call focus on any non-text elements, which still abides by the W3C SendKeys spec change incoming https://github.com/w3c/webdriver/issues/1430 as carat preservation behavior is only specified for text-type inputs. Additionally, this change also updates focus.js javascript to not move carat after a focus. Which was erroneously not updated in https://crrev.com/674640 Bug: chromedriver:3006 Change-Id: Ie4d4bab3eb45aec64a586cbfa786968601a06189 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700475 Commit-Queue: Stanley Hon <stahon@microsoft.com> Reviewed-by: John Chen <johnchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#678908}
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 .