Bug 154095 - Web Inspector: Improve display of Native Constructors with extra properties
Summary: Web Inspector: Improve display of Native Constructors with extra properties
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-02-10 16:17 PST by Joseph Pecoraro
Modified: 2016-12-13 15:39 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-02-10 16:17:27 PST
* SUMMARY
Improve display of Native Constructors with extra properties.

* STEPS TO REPRODUCE
1. js> URL
2. js> Promise
  => Both of these show "function Foo() { [native code] }". Expected to see more like:
    - URL.createObjectURL, URL.revokeObjectURL
    - Promise.race, Promise.all, Promise.reject, etc.

Using dir(URL) or dir(Promise) you get to see the extra properties and their signatures. But that may be non-obvious.


* NOTES
- ObjectTreePropertyTreeElement.js checks if parentDescription.endsWith("Constructor"), which is no longer the case for generated bindings after bug 154038:
<https://webkit.org/b/154038> [Web IDL] interface objects should be Function objects
  - we should keep this code in for iOS 9 and earlier backend compatibility
- We still behave correctly for dir(Promise), etc. But it might be nice to surface that information earlier.
Comment 1 Radar WebKit Bug Importer 2016-02-10 16:18:43 PST
<rdar://problem/24598820>