New issue
Advanced search Search tips

Issue 820670 link

Starred by 0 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

window.prompt removes spaces when pasting

Reported by gabr...@gsdb.net, Mar 10 2018

Issue description

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

Steps to reproduce the problem:
1. Execute prompt()
2. Paste "Hello          world"

What is the expected behavior?
"Hello          world" should be pasted.

What went wrong?
Instead, it shows "Hello world".

Did this work before? Yes Not sure, but it worked with Chrome 48.0.2564.103

Does this work in other browsers? Yes

Chrome version: 65.0.3325.146  Channel: stable
OS Version: 16.04.4
Flash Version: 

Tested with:
Chrome Stable 65.0.3325.146 (Ubuntu 16.04.4)
Chrome Dev 66.0.3346.8 (Ubuntu 16.04.4)
Canary 67.0.3366.0 (Windows 7)
 
test.html
524 bytes View Download

Comment 1 by woxxom@gmail.com, Mar 10 2018

Bisect info: 362777 (good) - 362785 (bad)
https://chromium.googlesource.com/chromium/src/+log/296be16f..2794da91?pretty=fuller
Suspecting r362782 = 9836b46ff3617c72a1a0d58634e305868928dc12 = https://crrev.com/1492633004 by ananta@chromium.org
"Ensure that text with leading, trailing, interspersed tabs and spaces pasted into the textfield is sanitized correctly."
Landed in 49.0.2580.0

The change was intended to fix an issue in native UI of Chrome, but it was wrong to apply it to JavaScript dialogs.

Comment 2 Deleted

Labels: Needs-Bisect Needs-Triage-M65
Labels: -Needs-Bisect -Type-Bug-Regression Triaged-ET M-67 Target-67 FoundIn-67 OS-Mac OS-Windows Type-Bug
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on mac 10.13.3, Win-10 and Ubuntu 14.04 using chrome reported version #65.0.3325.146 and latest canary #67.0.3368.0.
This is a non-regression issue as it is observed from M60 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!

Sign in to add a comment