DescriptionEliminate extra Native->JS->Native roundrip when showing context menu.
Context menu presentation success relies on performance of
getElementFromPoint. If getElementFromPoint returns after long press
was recognized then Chrome misses the chance to show context menu and
WKWebView context menu shows up.
Merged |fetchWebPageWidthWithCompletionHandler:| and
|__gCrWeb.getElementFromPoint| together to improve script execution
speed. This should make Chrome context menu failures less frequent.
BUG=542933
Review-Url: https://codereview.chromium.org/2801213004
Cr-Commit-Position: refs/heads/master@{#463288}
Committed: https://chromium.googlesource.com/chromium/src/+/b35602e4c8046e6d97e65b2cd35036c29984ec9e
Patch Set 1 #Patch Set 2 : Fixed tests #Patch Set 3 : Fixed tests #
Total comments: 2
Messages
Total messages: 21 (14 generated)
|