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

Issue 797722 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
OoO until Feb 4th
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

for..in no longer working for "HTMLFormControlsCollection" in chrome v63

Reported by anov.sir...@gmail.com, Dec 27 2017

Issue description

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

Steps to reproduce the problem:
- open chrome devtools
- open tab "elements"
- click "form" element
- open tab "console"
- write "for(var n in $0.elements) console.log(n);"

it only yield control [0,1,2...index], "namedItem", "length" and "item".

What is the expected behavior?
it should also yield control attribute element.NAME(s) and element.ID(s)

What went wrong?
element.NAME(s) and element.ID(s) is missing.

Did this work before? Yes x < 63, i guess

Chrome version: 63.0.3239.108  Channel: stable
OS Version: 16.04
Flash Version: Shockwave Flash 28.0 r0

(sory for my english)
 
Labels: Needs-Bisect Needs-Triage-M63

Comment 3 by bokan@chromium.org, Dec 27 2017

Components: -Blink Blink>Forms
Cc: vamshi.k...@techmahindra.com
Labels: Needs-Feedback Triaged-ET
Checked the issue on reported chrome version 63.0.3239.108, and on the latest dev 65.0.3305.0 using Ubuntu 14.04 with the below mentioned steps.
1. Launched Chrome
2. Navigated to https://jsfiddle.net/anovsiradj/vfa2nen2/
3. Opened Chrome dev tools.
4. Opened tab "elements"
5. Clicked "form" element
6. Opened "Console" tab
7. Given "for(var n in $0.elements) console.log(n);"

We got the result:  
0
1
2
3
.
....
41
namedItem
length
item

@Reporter: As you mentioned the earlier version was working fine, so we have checked it on chrome version #62.0.3202.38 by following the above mentioned steps. Attaching the screen cast of the same. Could you please clarify us on it, whether the screen cast has a good behavior, which helps us to triage the issue further in a better way. Any further inputs do help us.

Thanks!
797722.mp4
2.8 MB View Download
Screencast 2017-12-28 22:49:14.mp4
3.2 MB View Download
Project Member

Comment 6 by sheriffbot@chromium.org, Dec 28 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "vamshi.kommuri@techmahindra.com" to the cc list and removing "Needs-Feedback" label.

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

Comment 7 Deleted

Yes! Confirmed, from your video, chrome v62 is working
and chrome v63 is not working.

v62 result: [0...41, {non..indexes..keys}, namedItem, length, item]

v63 result: [0...41, namedItem, length, item]

(@vamshi, see your video at minutes 0:30++, then compare with this video)
Screencast 2017-12-28 23:12:22.mp4
2.1 MB View Download
Components: Blink>Bindings
Labels: -Pri-2 -Needs-Bisect hasbisect-per-revision M-63 OS-Mac OS-Windows Pri-1
Owner: raphael....@intel.com
Status: Assigned (was: Unconfirmed)
Able to reproduce this issue on reported version 63.0.3239.108 and latest canary 65.0.3305.0 using Windows 10, Ubuntu 14.04 and Mac 10.13.1 with the confirmation given by reporter from comment#8.

Good Build: 63.0.3219.0
Bad Build: 63.0.3220.0

You are probably looking for a change made after 502732 (known good), but no later than 502733 (first known bad).
CHANGELOG URL:
The script might not always return single CL as suspect as some perf builds might get missing due to failure.
  https://chromium.googlesource.com/chromium/src/+log/9e319197e596a8b57465591c2ded1afac2ab484d..231585efb676b7d99748e29f9049b29bf1f84f67
Reviewed-on: https://chromium-review.googlesource.com/654837

Suspecting same from changelog.

@raphael.kubo.da.costa: Please confirm the issue and help in re-assigning if it is not related to your change. Adding RB-Stable as this is broken in M63. Please remove if not the case.

Thanks!
Status: WontFix (was: Assigned)
You've pinpointed the right commit, but everything's working as intended: as the commit message says, we're now following the specs correctly just like Firefox and Safari by applying the [LegacyUnenumerableNamedProperties] attribute to HTMLCollection and HTMLAllCollection.

See also:  issue 703990  and  issue 719703 .
okay. thanks for your info.

Sign in to add a comment