⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267545 in webkit


Ignore:
Timestamp:
Sep 24, 2020, 2:36:45 PM (6 years ago)
Author:
BJ Burg
Message:

REGRESSION(iOS WebDriver): action chains with 'Touch' pointerType don't work on Mac
https://bugs.webkit.org/show_bug.cgi?id=216937
<rdar://problem/69149171>

Reviewed by Darin Adler.

Before iOS WebDriver shipped, 'Touch' was unconditionally aliased to 'Mouse.'
Make sure the aliasing happens for macOS so the command doesn't fail frivolously.

  • UIProcess/Automation/WebAutomationSession.cpp:

(WebKit::WebAutomationSession::performInteractionSequence):
Alias 'Touch' to 'Mouse' when touch is not available and mouse is.
This is the case for macOS.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r267540 r267545  
     12020-09-24  Brian Burg  <bburg@apple.com>
     2
     3        REGRESSION(iOS WebDriver): action chains with 'Touch' pointerType don't work on Mac
     4        https://bugs.webkit.org/show_bug.cgi?id=216937
     5        <rdar://problem/69149171>
     6
     7        Reviewed by Darin Adler.
     8
     9        Before iOS WebDriver shipped, 'Touch' was unconditionally aliased to 'Mouse.'
     10        Make sure the aliasing happens for macOS so the command doesn't fail frivolously.
     11
     12        * UIProcess/Automation/WebAutomationSession.cpp:
     13        (WebKit::WebAutomationSession::performInteractionSequence):
     14        Alias 'Touch' to 'Mouse' when touch is not available and mouse is.
     15        This is the case for macOS.
     16
    1172020-09-24  Kate Cheney  <katherine_cheney@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp

    r266902 r267545  
    18561856        if (inputSourceType == SimulatedInputSourceType::Mouse)
    18571857            inputSourceType = SimulatedInputSourceType::Touch;
     1858#elif ENABLE(WEBDRIVER_MOUSE_INTERACTIONS) && !ENABLE(WEBDRIVER_TOUCH_INTERACTIONS)
     1859        if (inputSourceType == SimulatedInputSourceType::Touch)
     1860            inputSourceType = SimulatedInputSourceType::Mouse;
    18581861#endif
    18591862#if !ENABLE(WEBDRIVER_MOUSE_INTERACTIONS)
Note: See TracChangeset for help on using the changeset viewer.