<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27631</bug_id>
          
          <creation_ts>2009-07-23 17:06:36 -0700</creation_ts>
          <short_desc>WorkerContext does not expose the right set of constructors</short_desc>
          <delta_ts>2023-03-27 05:36:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Wilson">atwilson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>ian</cc>
    
    <cc>ukai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>134314</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2009-07-23 17:06:36 -0700</bug_when>
    <thetext>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&apos;t expose EventSource, but do expose other things like MessageEvent and WorkerLocation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134329</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-07-23 17:37:07 -0700</bug_when>
    <thetext>It&apos;s not clear why WorkerLocation is not exposed per the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134339</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2009-07-23 18:03:32 -0700</bug_when>
    <thetext>For that matter, what about other things visible to workers, like ApplicationCache?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134567</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Wilson">atwilson</who>
    <bug_when>2009-07-24 08:29:37 -0700</bug_when>
    <thetext>From my email conversation with ianh:

&gt; 1) What are the criteria used to determine the list of visible constructors
&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196356</commentid>
    <comment_count>4</comment_count>
    <who name="Fumitoshi Ukai">ukai</who>
    <bug_when>2010-03-04 21:54:24 -0800</bug_when>
    <thetext>Sorry, closed different bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944182</commentid>
    <comment_count>5</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-03-27 05:36:02 -0700</bug_when>
    <thetext>This has been sorted out.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>