Bug 161263 - REGRESSION(r202568): Web Inspector: Expanding Array Prototype in Console shows no properties
Summary: REGRESSION(r202568): Web Inspector: Expanding Array Prototype in Console show...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-08-26 13:36 PDT by Joseph Pecoraro
Modified: 2016-08-29 19:09 PDT (History)
11 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (7.00 KB, patch)
2016-08-26 14:46 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[IMAGE] Before (102.71 KB, image/png)
2016-08-26 14:46 PDT, Joseph Pecoraro
no flags Details
[IMAGE] After (202.29 KB, image/png)
2016-08-26 14:46 PDT, Joseph Pecoraro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-08-26 13:36:33 PDT
Summary:
REGRESSION: Web Inspector: Expanding Array Prototype in Console shows no properties

Steps to reproduce:
1. js> dir([])
2. Expand Array Prototype
  => Says "No Properties" expected all the Array methods (sort, reduce, forEach, ...)

Notes:
- I think this is because [].__proto__ is an array instance with 0 length. We dropped the length requirement in <https://trac.webkit.org/r202568>
Comment 1 Radar WebKit Bug Importer 2016-08-26 13:37:08 PDT
<rdar://problem/28035849>
Comment 2 Joseph Pecoraro 2016-08-26 14:46:24 PDT
Created attachment 287151 [details]
[PATCH] Proposed Fix
Comment 3 Joseph Pecoraro 2016-08-26 14:46:42 PDT
Created attachment 287152 [details]
[IMAGE] Before
Comment 4 Joseph Pecoraro 2016-08-26 14:46:54 PDT
Created attachment 287153 [details]
[IMAGE] After
Comment 5 Matt Baker 2016-08-29 18:20:51 PDT
Comment on attachment 287151 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=287151&action=review

r=me

> LayoutTests/inspector/model/remote-object-get-properties.html:60
> +        {expression: "window.arrayProto"},

Isn't the arrayProto step covered by simpleArray?
Comment 6 Joseph Pecoraro 2016-08-29 18:47:21 PDT
(In reply to comment #5)
> Comment on attachment 287151 [details]
> [PATCH] Proposed Fix
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=287151&action=review
> 
> r=me
> 
> > LayoutTests/inspector/model/remote-object-get-properties.html:60
> > +        {expression: "window.arrayProto"},
> 
> Isn't the arrayProto step covered by simpleArray?

Nope, but we didn't have a test for an Array so I added one.
Comment 7 WebKit Commit Bot 2016-08-29 19:09:02 PDT
Comment on attachment 287151 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 287151

Committed r205168: <http://trac.webkit.org/changeset/205168>
Comment 8 WebKit Commit Bot 2016-08-29 19:09:07 PDT
All reviewed patches have been landed.  Closing bug.