New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 599890 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Blocked on:
issue 551193



Sign in to add a comment

Buggy contenteditable behavior when defaultParagraphSeparator is set to p

Reported by alexjfor...@gmail.com, Apr 1 2016

Issue description

THIS TEMPLATE IS FOR FILING BUGS ON THE ANDROID SYSTEM WEBVIEW. GENERAL WEB
BUGS SHOULD BE FILED USING A DIFFERENT TEMPLATE!

Device name: Nexus 5X
Android version: 6.0.1
WebView version (from system settings -> Apps -> Android System WebView): 49.0.2623.105
Application: Demo app (https://github.com/aforcier/WebView-defaultParagraphSeparator)
Application version: N/A

URLs (if applicable):

Demo project exhibiting the bug (with a demo GIF in the README):
https://github.com/aforcier/WebView-defaultParagraphSeparator


Steps to reproduce:
(1) Inside a system WebView, with the default keyboard and autocorrect enabled, load an html page with a contenteditable div, and with defaultParagraphSeparator set to 'p'
(2) Type on software keyboard, with multiple newlines
(3) Backspace several times after a few words, deleting multiple lines
(4) Alternatively, type a word, press space, and then backspace immediately

Expected result:
Autocorrect should behave as it would without defaultParagraphSeparator set to 'p', treating each word separately.

Actual result:
Autocorrect selects parts of words when backspace places the cursor next to them, causing your next action to delete or move words or parts of words erratically (see the demo GIF attached and in the GitHub repo above for clarity).

 
WebView-contenteditable-backspace-bug-small.gif
188 KB View Download
Cc: aelias@chromium.org
cc'ing aelias@ for input related stuff

Comment 2 by aelias@chromium.org, Apr 18 2016

Blockedon: 551193
Cc: changwan@chromium.org
Components: -Mobile>WebView UI>Input>Text>IME
Labels: -Pri-3 Pri-2
Owner: changwan@chromium.org
Status: Assigned (was: Unconfirmed)
Summary: Buggy contenteditable behavior when defaultParagraphSeparator is set to p (was: Buggy autocorrect behavior when defaultParagraphSeparator is set to p )
This also reproduces in Chrome, see https://jsfiddle.net/2oagqmb3/4/

This issue is fixed by --use-ime-thread on 52.0.2709.0.  Let's not workaround in ReplicaInputConnection as this issue is likely longstanding, marking blocked on  http://crbug.com/551193 .
Status: Fixed (was: Assigned)

Sign in to add a comment