Bug 145195

Summary: Web Inspector: array previews should have a much smaller cap on values
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Timothy Hatcher 2015-05-19 17:47:16 PDT
Right now it looks like array previews will contain up to 100 items. That seems excessive, at least in the case when the array is not a top level object. For property previews, the row does not wrap, so it is often clipped at 5 or 10 items anyway. It is wasteful to include any more than that.
Comment 1 Radar WebKit Bug Importer 2015-05-19 17:47:36 PDT
<rdar://problem/21030688>
Comment 2 Joseph Pecoraro 2015-05-20 18:39:33 PDT
Lets do 10. For small arrays with primitives, it is not that wasteful. But I totally agree for larger arrays.
Comment 3 Joseph Pecoraro 2015-05-20 18:43:35 PDT
Created attachment 253490 [details]
[PATCH] Proposed Fix
Comment 4 WebKit Commit Bot 2015-05-20 22:13:13 PDT
Comment on attachment 253490 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 253490

Committed r184699: <http://trac.webkit.org/changeset/184699>
Comment 5 WebKit Commit Bot 2015-05-20 22:13:16 PDT
All reviewed patches have been landed.  Closing bug.