[Webkit-unassigned] [Bug 183230] New: Web Automation: script evaluations via WebDriver should have a user gesture indicator
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 28 15:57:15 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=183230
Bug ID: 183230
Summary: Web Automation: script evaluations via WebDriver
should have a user gesture indicator
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebDriver
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bburg at apple.com
CC: aestes at apple.com, bburg at apple.com, cgarcia at igalia.com,
thorton at apple.com
Some JS/DOM APIs only work require a user gesture indicator. Since there is no real user input when running via WebDriver, these APIs can only be tested if WebDriver code has a synthetic user gesture indicator, or explicit checks for a user gesture indicator should also allow usage iff page->isControlledByAutomation().
It would be nice to do the first approach since only one source location is needed. However, it's possible via WebDriver to evaluate "async" JavaScript which calls a completion handler some arbitrary amount of time later. The naive approach to set a user gesture indicator would only allow gesture-requiring API calls that happen synchronously.
So, we need to either set a user gesture indicator using non-RAII code, or audit every single check and add || page->isControlledByAutomation() to the condition.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180228/1f7e48b7/attachment.html>
More information about the webkit-unassigned
mailing list