Bug 142008

Summary: Web Inspector: Improve PropertyPath display strings for getters / values
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
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 Joseph Pecoraro 2015-02-24 23:14:06 PST
* SUMMARY
Improve PropertyPath display strings for getters / values.

  js> dir([{property: {get value() { return 10; }}}])
  <-  ▼ 0: Object
        ▼ property: Object
          ▼ value: (...)

Hovering value here should say:

  obj[0].property.__lookupGetter__("value")
  
Once invoking the getter. Hovering value should say:

  obj[0].property.value

We should elide __proto__ when dealing with values. We could probably keep them for getters, but lets leave them in to guarentee the absolute path.
Comment 1 Radar WebKit Bug Importer 2015-02-24 23:14:18 PST
<rdar://problem/19949817>
Comment 2 Joseph Pecoraro 2015-02-24 23:18:36 PST
Created attachment 247315 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2015-02-25 07:04:06 PST
Comment on attachment 247315 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 247315

Committed r180624: <http://trac.webkit.org/changeset/180624>
Comment 4 WebKit Commit Bot 2015-02-25 07:04:11 PST
All reviewed patches have been landed.  Closing bug.