Changeset 231821 in webkit


Ignore:
Timestamp:
May 15, 2018 4:50:19 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Update touch event tracking type on every touch
https://bugs.webkit.org/show_bug.cgi?id=184250
<rdar://problem/39145092>

Patch by Tadeu Zagallo <Tadeu Zagallo> on 2018-05-15
Reviewed by Geoffrey Garen.

The tracking type for touch events were only update on touchstart, which meant that event
listeners added after the touchstart would always be treated as passive, even if explicitly
setting passive to false.

Source/WebKit:

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::handleTouchEventSynchronously):
(WebKit::WebPageProxy::handleTouchEvent):

LayoutTests:

  • fast/events/touch/ios/touchmove-cancelable-after-touchstart-expected.txt: Added.
  • fast/events/touch/ios/touchmove-cancelable-after-touchstart.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r231817 r231821  
     12018-05-15  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        Update touch event tracking type on every touch
     4        https://bugs.webkit.org/show_bug.cgi?id=184250
     5        <rdar://problem/39145092>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        The tracking type for touch events were only update on touchstart, which meant that event
     10        listeners added after the touchstart would always be treated as passive, even if explicitly
     11        setting passive to false.
     12
     13        * fast/events/touch/ios/touchmove-cancelable-after-touchstart-expected.txt: Added.
     14        * fast/events/touch/ios/touchmove-cancelable-after-touchstart.html: Added.
     15
    1162018-05-15  Jer Noble  <jer.noble@apple.com>
    217
  • trunk/Source/WebKit/ChangeLog

    r231818 r231821  
     12018-05-15  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        Update touch event tracking type on every touch
     4        https://bugs.webkit.org/show_bug.cgi?id=184250
     5        <rdar://problem/39145092>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        The tracking type for touch events were only update on touchstart, which meant that event
     10        listeners added after the touchstart would always be treated as passive, even if explicitly
     11        setting passive to false.
     12
     13        * UIProcess/WebPageProxy.cpp:
     14        (WebKit::WebPageProxy::handleTouchEventSynchronously):
     15        (WebKit::WebPageProxy::handleTouchEvent):
     16
    1172018-05-15  Per Arne Vollan  <pvollan@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r231818 r231821  
    23012301    TraceScope scope(SyncTouchEventStart, SyncTouchEventEnd);
    23022302
    2303     if (event.type() == WebEvent::TouchStart)
    2304         updateTouchEventTracking(event);
     2303    updateTouchEventTracking(event);
    23052304
    23062305    TrackingType touchEventsTrackingType = touchEventTrackingType(event);
     
    23562355        return;
    23572356
    2358     if (event.type() == WebEvent::TouchStart)
    2359         updateTouchEventTracking(event);
     2357    updateTouchEventTracking(event);
    23602358
    23612359    if (touchEventTrackingType(event) == TrackingType::NotTracking)
Note: See TracChangeset for help on using the changeset viewer.