WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
34832
Bad primitive type for constructors defined in the window object.
https://bugs.webkit.org/show_bug.cgi?id=34832
Summary
Bad primitive type for constructors defined in the window object.
Marc Bonnier
Reported
2010-02-11 01:03:03 PST
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)
Comment 1
2010-02-11 01:35:41 PST
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
Comment 2
2010-02-19 00:48:03 PST
Maybe they should be made non-enumerable as in Firefox ?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug