Changeset 240352 in webkit


Ignore:
Timestamp:
Jan 23, 2019 12:09:54 PM (5 years ago)
Author:
Wenson Hsieh
Message:

[iOS] fast/events/touch/ios/hover-when-style-change-is-async.html times out
https://bugs.webkit.org/show_bug.cgi?id=193182
<rdar://problem/47452154>

Reviewed by Tim Horton.

Source/WebKit:

Fix an existing bug where blurring an element doesn't always un-suppress text interactions.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _elementDidBlur]):

Tools:

This test was timing out because one of its preceding tests (drag-to-autoscroll-in-single-line-editable.html)
long presses and drags to select text, but does not end the touch by lifting up; subsequently, the tap gesture
recognizer isn't fired when simulating a tap in hover-when-style-change-is-async.html.

To fix this, tweak the test runner to make it safe for tests to end while touching the web view without
preventing later tests from recognizing gestures.

  • WebKitTestRunner/ios/TestControllerIOS.mm:

(WTR::TestController::platformResetStateToConsistentValues):

Cancel all touches in the UIApplication when resetting to a consistent state between tests.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r240350 r240352  
     12019-01-23  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [iOS] fast/events/touch/ios/hover-when-style-change-is-async.html times out
     4        https://bugs.webkit.org/show_bug.cgi?id=193182
     5        <rdar://problem/47452154>
     6
     7        Reviewed by Tim Horton.
     8
     9        Fix an existing bug where blurring an element doesn't always un-suppress text interactions.
     10
     11        * UIProcess/ios/WKContentViewInteraction.mm:
     12        (-[WKContentView _elementDidBlur]):
     13
    1142019-01-23  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r240349 r240352  
    46614661    if (!_isChangingFocus) {
    46624662        [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparentOrFullyClipped];
     4663        [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTooSmall];
    46634664        _didAccessoryTabInitiateFocus = NO;
    46644665    }
  • trunk/Tools/ChangeLog

    r240339 r240352  
     12019-01-23  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [iOS] fast/events/touch/ios/hover-when-style-change-is-async.html times out
     4        https://bugs.webkit.org/show_bug.cgi?id=193182
     5        <rdar://problem/47452154>
     6
     7        Reviewed by Tim Horton.
     8
     9        This test was timing out because one of its preceding tests (drag-to-autoscroll-in-single-line-editable.html)
     10        long presses and drags to select text, but does not end the touch by lifting up; subsequently, the tap gesture
     11        recognizer isn't fired when simulating a tap in hover-when-style-change-is-async.html.
     12
     13        To fix this, tweak the test runner to make it safe for tests to end while touching the web view without
     14        preventing later tests from recognizing gestures.
     15
     16        * WebKitTestRunner/ios/TestControllerIOS.mm:
     17        (WTR::TestController::platformResetStateToConsistentValues):
     18
     19        Cancel all touches in the UIApplication when resetting to a consistent state between tests.
     20
    1212019-01-23  Jonathan Bedard  <jbedard@apple.com>
    222
  • trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm

    r240139 r240352  
    116116    cocoaResetStateToConsistentValues(options);
    117117
     118    [[UIApplication sharedApplication] _cancelAllTouches];
    118119    [[UIDevice currentDevice] setOrientation:UIDeviceOrientationPortrait animated:NO];
    119120
Note: See TracChangeset for help on using the changeset viewer.