Bug 141585

Summary: Some IDL attributes appear on the instances instead of on prototypes
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: BindingsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, cdumez, eoconnor, ggaren, joepeck, mark.lam, mike, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Joseph Pecoraro 2015-02-13 17:40:58 PST
* SUMMARY
Some IDL attributes appear on instances instead of on prototypes.

    1. JSEvent properties on events ("clipboardData")
      => generated JSEvent::getOwnPropertySlot claims this is an instance's own property

    2. HTMLDocument properties on document ("embeds", ...)
      => JSHTMLDocument::getOwnPropertySlot sets cacheable properties for JSHTMLDocument::info table entries

    3. DOMWindow properties on window ("innerHeight", ...)
      => JSDOMWindow::getOwnPropertySlot sets cacheable properties for JSDOMWindow::info table entries

A side-effect of this, is that these properties do not have expected property descriptors. (They should have appropriate getters/setters and do not).
Comment 1 Joseph Pecoraro 2016-06-29 18:07:08 PDT
I think Chris fixed the majority of these. I'm updating Web Inspector now to better handle the changes we've seen. Lets close this out.