New issue
Advanced search Search tips

Issue 774296 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 770502



Sign in to add a comment

Pass surrounding text to SelectionPopupController.showSelectionMenu()

Project Member Reported by amaralp@chromium.org, Oct 12 2017

Issue description

Android's Smart Select uses the text surrounding a selection to potentially suggest a larger selection. Currently we get the surrounding text by making a round trip to the renderer with SmartSelectionClient.requestSurroundingText() and SmartSelectionClient.onSurroundingTextReceived(). We can avoid this round trip by having the renderer send the surrounding text to the browser in the ContextMenuParams. Then we pass the surrounding text to SelectionPopupController.showSelectionMenu().
 
Blocking: 770502

Sign in to add a comment