Bug 34832
| Summary: | Bad primitive type for constructors defined in the window object. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Marc Bonnier <chrome> |
| Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Marc Bonnier
Constructors defined in the window such as:
CDATASection
CSSCharsetRule
CSSFontFaceRule
CSSImportRule
CSSMediaRule
CSSPageRule
CSSPrimitiveValue
CSSRule
... and many mores ...
are returned as "object" type. They should be "function".
Chromium defined them correctly as "function".
While this does not affect functionality, it would be nice to have the same result in both WebKit browsers.
Thank you.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
Safari matches Firefox in this. The objects are not callable nor constructable, so it’s not clear why they should be reported as functions.
Marc Bonnier
Maybe they should be made non-enumerable as in Firefox ?