Bug 55220

Summary: Web Inspector: "length" getter is invoked upon console object formatting.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Pavel Feldman 2011-02-25 08:21:18 PST
Enter 'demo = {get length () {return this.a.length;}}' and submit.
Read error "TypeError: Cannot read property 'length' of undefined".

Reason is that array detection in the formatting code checks the length value. We should probably switch to testing whether length is enumerated instead.
Comment 1 Pavel Feldman 2011-02-25 08:57:42 PST
Created attachment 83819 [details]
Patch
Comment 2 Pavel Feldman 2011-03-09 01:54:20 PST
Comment on attachment 83819 [details]
Patch

Clearing flags on attachment: 83819

Committed r80628: <http://trac.webkit.org/changeset/80628>
Comment 3 Pavel Feldman 2011-03-09 01:54:28 PST
All reviewed patches have been landed.  Closing bug.