Bug 93713 - Web Inspector: render arrays as dir in case they were logged into console prior to the front-end opening.
Summary: Web Inspector: render arrays as dir in case they were logged into console pri...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Feldman
URL:
Keywords:
Depends on: 93748
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-10 05:40 PDT by Pavel Feldman
Modified: 2012-08-10 16:01 PDT (History)
11 users (show)

See Also:


Attachments
Patch (17.96 KB, patch)
2012-08-10 08:26 PDT, Pavel Feldman
vsevik: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Feldman 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]
Comment 1 Pavel Feldman 2012-08-10 08:26:14 PDT
Created attachment 157733 [details]
Patch
Comment 2 Pavel Feldman 2012-08-10 08:42:43 PDT
Committed r125284: <http://trac.webkit.org/changeset/125284>
Comment 4 Dean Jackson 2012-08-10 16:01:39 PDT
Followup https://bugs.webkit.org/show_bug.cgi?id=93748