Bug 155293
Summary: | WebKit returns "object" for "typeof XMLHttpRequest" and "typeof WebSocket" which are clearly constructable. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mark Toller <mark.toller> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, cdumez, j.isorce |
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Mark Toller
typeof WebSocket and XMLHttpRequest is "function" in IE, Firefox and Chrome, WebKit returns "object" here.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Chris Dumez
Already fixed in Bug 154038. Note however that this has nothing to do with being constructible or not. `typeof Node` returns "function" in all browsers as well but is not constructible.
*** This bug has been marked as a duplicate of bug 154038 ***
Chris Dumez
You can confirm this by trying a nightly build:
https://nightly.webkit.org