New issue
Advanced search Search tips

Issue 754989 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Console paste trailing comma array

Reported by xilef...@gmail.com, Aug 13 2017

Issue description

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

Steps to reproduce the problem:
This seems like a bug with copying trailing comma arrays inside the console.

1. Paste into console: new lmao([, -0]);
2. This should result in a error "lmao not found".
3. Now copy !only! the array with your mouse (the code you entered above the error message)
4. Now copy&paste it into your console

What is the expected behavior?
The pasted content should look like: [, -0]

What went wrong?
The pasted content looks like: -0]);

Did this work before? N/A 

Chrome version: 60.0.3112.90  Channel: stable
OS Version: 10.0
Flash Version:
 
qgKS864bT-SVL58lFi57jA.png
7.9 KB View Download

Comment 1 by l...@chromium.org, Aug 14 2017

Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)
Thanks for the report.  I can reproduce this on 60.0.3112.78, but it looks fine on 62.0.3183.0.  Let me investigate when this was fixed and see if it's able to be merged.

Comment 2 by l...@chromium.org, Aug 15 2017

Status: WontFix (was: Assigned)
I've bisected it to this commit:
https://chromium.googlesource.com/chromium/src/+/46ab10923ea52c1e02980027a5e098ae25e904b7
There was a bug in the logic used to determine what text was selected.  Sorry for the inconvenience in copying.  The fix is already in Beta channel M61 and canary, and should reach Stable channel soon in the coming weeks.

Sign in to add a comment