Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Links cannot be activated when running Mobile Safari with external SD…
…K build of WebKit for iOS Simulator https://bugs.webkit.org/show_bug.cgi?id=141906 Reviewed by Tim Horton. Source/WebKit2: Even if Touch Events are disabled, we still need to register a UIWebTouchEventsGestureRecognizer to record the layer tree transaction ID when a touch begins. Click events are only generated for touches that occur after the current frame's load has committed, and we use the transaction ID from when the touch began to implement this check. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::handleTouchEventSynchronously): (WebKit::WebPageProxy::resetState): * UIProcess/WebPageProxy.h: * UIProcess/ios/WKContentViewInteraction.h: Declared _layerTreeTransactionIdAtLastTouchStart. * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView setupInteraction]): Register a UIWebTouchEventsGestureRecognizer even if Touch Events are disabled. (-[WKContentView cleanupInteraction]): Reset _layerTreeTransactionIdAtLastTouchStart to 0. (-[WKContentView _webTouchEventsRecognized:]): Update _layerTreeTransactionIdAtLastTouchStart when a touch begins, even if Touch Events are disabled. (-[WKContentView _singleTapCommited:]): Passed _layerTreeTransactionIdAtLastTouchStart to WebPageProxy::commitPotentialTap(). (-[WKContentView _attemptClickAtLocation:]): Ditto for WebPageProxy::handleTap(). * UIProcess/ios/WebPageProxyIOS.mm: (WebKit::WebPageProxy::commitPotentialTap): (WebKit::WebPageProxy::handleTap): LayoutTests: Unskipped tests that now pass. Rewrote a test to use UIHelper so that it works on both DumpRenderTree and WebKitTestRunner. * fast/events/can-click-element-on-page-with-active-pseudo-class-and-search-field.html: Rewrote to use UIHelper.activateAt(). * platform/ios-simulator-wk2/TestExpectations: * platform/ios-simulator/TestExpectations: Canonical link: https://commits.webkit.org/185891@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
10 changed files
with
67 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters