Bug 141585 - Some IDL attributes appear on the instances instead of on prototypes
Summary: Some IDL attributes appear on the instances instead of on prototypes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-13 17:40 PST by Joseph Pecoraro
Modified: 2016-06-29 18:07 PDT (History)
8 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 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.