Should ask hittest frame to invoke context menu on long tap.
During long tap, |WebViewImpl::HandleGestureEvent| asks the main frame's GestureManager is the long tap should invoke context menu. However, the previeus long press event was routed to iframe's GestureManager. Therefore, main frame's GestureManager returns false in |GestureManager::LongTapShouldInvokeContextMenu|. Therefore, context menu is not invoked if the link is in an iframe. We should ask the hit frame to decide whether we should invoke context menu during long tap. Bug: 1112987 Change-Id: I90f5e1f09380258b6bdf83c9cc78b9764d2adeca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382054Reviewed-by:Siye Liu <siliu@microsoft.com> Reviewed-by:
Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/master@{#805167}
Showing
Please register or sign in to comment