WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
27631
WorkerContext does not expose the right set of constructors
https://bugs.webkit.org/show_bug.cgi?id=27631
Summary
WorkerContext does not expose the right set of constructors
Andrew Wilson
Reported
2009-07-23 17:06:36 PDT
Section 5.4 of the worker spec specifies that the following list of constructors are the only ones that should be exposed to WorkerContexts: XMLHttpRequest and all interface objects and constructors defined by the XMLHttpRequest specifications, except that the document response entity body must always be null. [XHR] The WebSocket interface object and constructor. [WEBSOCKET] The EventSource interface object and constructor. [EVENTSOURCE] The MessageChannel interface object and constructor. [HTML5] The Worker() and SharedWorker(url) constructors. We currently don't expose EventSource, but do expose other things like MessageEvent and WorkerLocation.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2009-07-23 17:37:07 PDT
It's not clear why WorkerLocation is not exposed per the spec.
Andrew Wilson
Comment 2
2009-07-23 18:03:32 PDT
For that matter, what about other things visible to workers, like ApplicationCache?
Andrew Wilson
Comment 3
2009-07-24 08:29:37 PDT
From my email conversation with ianh:
> 1) What are the criteria used to determine the list of visible constructors > in section 5.4 of the worker spec?
What I felt like adding that nobody complained about. :-) So it seems that the list is somewhat arbitrary. If we want to add more things, we should pursue this on the whatwg list.
Fumitoshi Ukai
Comment 4
2010-03-04 21:54:24 PST
Sorry, closed different bug
Anne van Kesteren
Comment 5
2023-03-27 05:36:02 PDT
This has been sorted out.
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