Changeset 246693 in webkit
- Timestamp:
- Jun 21, 2019 1:31:57 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246688 r246693 1 2019-06-21 Antoine Quint <graouts@apple.com> 2 3 [iOS] Compatibility mouse events aren't prevented by calling preventDefault() on pointerdown 4 https://bugs.webkit.org/show_bug.cgi?id=198124 5 6 Reviewed by Dean Jackson. 7 8 Add a new test that checks that calling preventDefault() within a "pointerdown" event handler correctly prevents 9 the dispatch of compatibility mouse events even with a slow tap. 10 11 * pointerevents/ios/pointer-events-no-mousedown-when-prevent-default-called-on-pointerdown-expected.txt: Added. 12 * pointerevents/ios/pointer-events-no-mousedown-when-prevent-default-called-on-pointerdown.html: Added. 13 1 14 2019-06-21 Russell Epstein <russell_e@apple.com> 2 15 -
trunk/Source/WebKit/ChangeLog
r246687 r246693 1 2019-06-21 Antoine Quint <graouts@apple.com> 2 3 [iOS] Compatibility mouse events aren't prevented by calling preventDefault() on pointerdown 4 https://bugs.webkit.org/show_bug.cgi?id=198124 5 <rdar://problem/50410863> 6 7 Reviewed by Dean Jackson. 8 9 Ensure we wait until completion of a tap before removing the pointer ID and the preventDefault() state along with it. 10 11 * UIProcess/ios/WKContentViewInteraction.h: 12 * UIProcess/ios/WKContentViewInteraction.mm: 13 (-[WKContentView _singleTapDidReset:]): 14 (-[WKContentView _commitPotentialTapFailed]): 15 (-[WKContentView _didCompleteSyntheticClick]): 16 (-[WKContentView _singleTapRecognized:]): 17 1 18 2019-06-21 Keith Rollin <krollin@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
r246626 r246693 60 60 #import <wtf/text/WTFString.h> 61 61 62 #if ENABLE(POINTER_EVENTS) 63 #import <WebCore/PointerID.h> 64 #endif 65 62 66 namespace API { 63 67 class OpenPanelParameters; … … 320 324 BOOL _isExpectingFastSingleTapCommit; 321 325 BOOL _showDebugTapHighlightsForFastClicking; 326 327 #if ENABLE(POINTER_EVENTS) 328 WebCore::PointerID m_commitPotentialTapPointerId; 329 #endif 322 330 323 331 BOOL _keyboardDidRequestDismissal; -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r246665 r246693 2342 2342 cancelPotentialTapIfNecessary(self); 2343 2343 #if ENABLE(POINTER_EVENTS) 2344 if (auto* singleTapTouchIdentifier = [_singleTapGestureRecognizer lastActiveTouchIdentifier]) 2345 _page->touchWithIdentifierWasRemoved([singleTapTouchIdentifier unsignedIntValue]); 2344 if (auto* singleTapTouchIdentifier = [_singleTapGestureRecognizer lastActiveTouchIdentifier]) { 2345 WebCore::PointerID pointerId = [singleTapTouchIdentifier unsignedIntValue]; 2346 if (m_commitPotentialTapPointerId != pointerId) 2347 _page->touchWithIdentifierWasRemoved(pointerId); 2348 } 2346 2349 #endif 2347 2350 } … … 2355 2358 - (void)_commitPotentialTapFailed 2356 2359 { 2360 #if ENABLE(POINTER_EVENTS) 2361 _page->touchWithIdentifierWasRemoved(m_commitPotentialTapPointerId); 2362 m_commitPotentialTapPointerId = 0; 2363 #endif 2364 2357 2365 [self _cancelInteraction]; 2358 2366 … … 2382 2390 - (void)_didCompleteSyntheticClick 2383 2391 { 2392 #if ENABLE(POINTER_EVENTS) 2393 _page->touchWithIdentifierWasRemoved(m_commitPotentialTapPointerId); 2394 m_commitPotentialTapPointerId = 0; 2395 #endif 2396 2384 2397 RELEASE_LOG(ViewGestures, "Synthetic click completed. (%p)", self); 2385 2398 [self _resetInputViewDeferral]; … … 2410 2423 WebCore::PointerID pointerId = WebCore::mousePointerID; 2411 2424 #if ENABLE(POINTER_EVENTS) 2412 if (auto* singleTapTouchIdentifier = [_singleTapGestureRecognizer lastActiveTouchIdentifier]) 2425 if (auto* singleTapTouchIdentifier = [_singleTapGestureRecognizer lastActiveTouchIdentifier]) { 2413 2426 pointerId = [singleTapTouchIdentifier unsignedIntValue]; 2427 m_commitPotentialTapPointerId = pointerId; 2428 } 2414 2429 #endif 2415 2430 _page->commitPotentialTap(WebKit::webEventModifierFlags(gestureRecognizerModifierFlags(gestureRecognizer)), _layerTreeTransactionIdAtLastTouchStart, pointerId);
Note: See TracChangeset
for help on using the changeset viewer.