New issue
Advanced search Search tips

Issue 724403 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 714425
Owner: ----
Closed: May 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Regression in Chrome 58: textarea.selectionStart only correct when focused

Reported by steffen....@gmail.com, May 19 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. Open the attached test-case and the devtools console
2. Enter two newline characters into the textarea (i.e. click on the textarea and press Enter twice)
3. Observe that "2" is logged to the console
4. Focus something else than the textarea (i.e. click somewhere on the blank page)
5. Observe that now "1" is logged to the console

What is the expected behavior?
It should log "2" no matter what the focus/blur state is.

What went wrong?
It logs "1" as soon as the textarea is no longer focused.

Did this work before? Yes 57

Does this work in other browsers? Yes

Chrome version: 58.0.3029.110  Channel: stable
OS Version: 
Flash Version: 

The problem only seems to happen with newline characters.
 
chrome-textarea-selectionstart.html
219 bytes View Download
Forgot to mention that maybe the following bug is related: https://bugs.chromium.org/p/chromium/issues/detail?id=721217

Comment 2 by tkent@chromium.org, May 19 2017

Mergedinto: 714425
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment