Bug 93713

Summary: Web Inspector: render arrays as dir in case they were logged into console prior to the front-end opening.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, dino, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 93748    
Bug Blocks:    
Attachments:
Description Flags
Patch vsevik: review+

Pavel Feldman
Reported 2012-08-10 05:40:57 PDT
When the user code does console.log() of arrays prior to front-end opening, we dump them in expanded user-friendly manner: [0,0,0] [0,0,1] [0,0,2] However, if this is the same array modified and logged over and over, we confuse user via outputting its last state: [0,0,2] [0,0,2] [0,0,2] In order to avoid the confusion, I'm suggesting that we dump potentially outdated arrays using the "dir" representation, i.e. Array[3]
Attachments
Patch (17.96 KB, patch)
2012-08-10 08:26 PDT, Pavel Feldman
vsevik: review+
Pavel Feldman
Comment 1 2012-08-10 08:26:14 PDT
Pavel Feldman
Comment 2 2012-08-10 08:42:43 PDT
Dean Jackson
Comment 4 2012-08-10 16:01:39 PDT
Note You need to log in before you can comment on or make changes to this bug.