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

Issue 619288 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Compat



Sign in to add a comment

One-char collapsed selection/caret bug [contenteditable]

Reported by cyril.au...@gmail.com, Jun 11 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2763.0 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. unclear
2. 
3. 

What is the expected behavior?
- Pardon the weird title, but I don't know well how to describe it http://recordit.co/bzTDYN6XqB (same file than the one attached)
- It's hard to reproduce, it probably happens on any contenteditable, and I've seen it while testing http://output.jsbin.com/borece, it's really hard to make it happen, and I don't know what exactly triggers it. Once it happens, refreshing doesn't fix it, only closing and reopening Chrome fixes it.

The selection when clicking in the text should always be collapsed

What went wrong?
The selection as seen on the video, is always wrapping one character, instead of being collapsed, the caret is not visible anymore

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 53.0.2763.0  Channel: dev
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0
 
chromebugselectionCaret.gif
231 KB View Download
Cc: rnimmagadda@chromium.org
Components: Blink>TextSelection>Caret
Labels: M-52 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to repro this issue on WIndows 7, MAC (10.11.5) & Ubuntu Trusty (14.04) for Google Chrome Stable Version - 51.0.2704.84

This is a Non-Regression issue existing from M30 - # 30.0.1549.0
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 13 2016

Labels: -M-52 M-53 MovedFrom-52
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
This may be the result of pressing the "insert" key to switch to overtype mode. In overtype mode, the cursor is always shown as a single-character selection, and typing replaces that character instead of inserting content before it. 

Unfortunately, there does not seem to be a way to detect and/or switch this mode from JavaScript. The selection API still reports a collapsed selection.
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 5 2016

Labels: -M-53 MovedFrom-53
This issue has been moved once and is lower than Pri-1. Removing the milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by yosin@chromium.org, Jul 13 2016

Status: WontFix (was: Untriaged)
Mark WontFix, this is expected behavior as #c3.

Oh thanks stef and yosin, I didn't think of that

Comment 7 by tkent@chromium.org, Oct 12 2016

Components: Blink>Editing>Selection

Comment 8 by tkent@chromium.org, Oct 12 2016

Components: -Blink>TextSelection>Caret

Sign in to add a comment