New issue
Advanced search Search tips

Issue 801754 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Consider write test for document.execCommand("selectAll"); in WebView.

Project Member Reported by ctzsm@chromium.org, Jan 13 2018

Issue description

From the  crbug.com/751435 , application developers sometimes need to implement select all functionality, however there is no such WebView api, so developers are trying to implement it in JavaScript with document.execCommand("selectAll");

Consider to write a test so we won't break this kind of usage in WebView and potentially on Chrome for Android.
 

Comment 1 by ctzsm@chromium.org, Jan 13 2018

Status: Assigned (was: Accepted)
It might worth to consider to provider such Java API?
We somewhat test this at FrameSelectionTest::SelectAllPreserveHandle. However we only check that the touch handles were shown and not that the action mode was shown.

We have a Java API for Select All but it is for IME. See https://developer.android.com/reference/android/view/inputmethod/InputConnection.html#performContextMenuAction(int). I don't know much about how apps use IME but maybe this could be a solution?

Sign in to add a comment