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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>18001</bug_id>
          
          <creation_ts>2012-07-18 07:59:30 +0000</creation_ts>
          <short_desc>Allow data: URL for new Worker(). Supported by Opera and Firefox.</short_desc>
          <delta_ts>2012-09-16 14:35:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Web Workers (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#dom-worker</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>art.barstow</cc>
    
    <cc>erika.doyle</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-webapps</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70463</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:59:30 +0000</bug_when>
    <thetext>This was was cloned from bug 15095 as part of operation convergence.
Originally filed: 2011-12-07 06:28:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2011-12-07 06:28:30 +0000 
--------------------------------------------------------------------------------
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html
Multipage: http://www.whatwg.org/C#dom-worker
Complete: http://www.whatwg.org/c#dom-worker

Comment:
Allow data: URL for new Worker(). Supported by Opera and Firefox.

Posted from: 85.227.157.105 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.942.0 Safari/535.8
================================================================================
 #1   Ian &apos;Hixie&apos; Hickson                             2011-12-07 23:29:19 +0000 
--------------------------------------------------------------------------------
So to do this I guess we just hack the origin to be the origin of the caller if the worker URL is a data: URL?
================================================================================
 #2   Simon Pieters                                   2011-12-08 09:16:08 +0000 
--------------------------------------------------------------------------------
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1274 - currently Firefox returns the empty string, Opera returns the full data: URL (although I think we have changed that to return &apos;null&apos; instead). Since workers can use XHR, EventSource and WebSocket, I think it would be better to use the origin of the entry script.

Opera currently doesn&apos;t allow data: for shared workers (and Firefox doesn&apos;t support shared workers at all), but we have discussed adding support for it, but here it&apos;s more important than with dedicated workers that the origin is that of the caller, so that different origin pages that use the same data: URL for a shared worker don&apos;t actually share the worker, but use separate ones.
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73840</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-09-14 05:09:48 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If
   you are satisfied with this response, please change the state of
   this bug to CLOSED. If you have additional information and would
   like the Editor to reconsider, please reopen this bug. If you would
   like to escalate the issue to the full HTML Working Group, please
   add the TrackerRequest keyword to this bug, and suggest title and
   text for the Tracker Issue; or you may create a Tracker Issue
   yourself, if you are able to do so. For more details, see this
   document:       http://dev.w3.org/html5/decision-policy/decision-policy.html

   Status: Accepted
   Change Description:
https://github.com/w3c/html/commit/fefc216ad6fd06e8e48557de56b3cf957fd95cf9
   Rationale: accepted WHATWG fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73897</commentid>
    <comment_count>2</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2012-09-14 11:29:51 +0000</bug_when>
    <thetext>Silvia - I don&apos;t see a new checkin in the Workers spec&apos;s CVS repository &lt;http://dev.w3.org/cvsweb/html5/workers/Overview.html&gt;. 

Was this bug fixed in some previous revision?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73914</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-09-14 12:34:56 +0000</bug_when>
    <thetext>Oops, I&apos;m sorry I got this mixed up as a bug of the HTML spec. Instead, it&apos;s part of the WebAppsWG. It has been applied by Ian in https://www.w3.org/Bugs/Public/show_bug.cgi?id=15095 , so you might want to check if that text has been pulled into the W3C spec.

Sorry for the confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73932</commentid>
    <comment_count>4</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2012-09-14 17:01:29 +0000</bug_when>
    <thetext>I checked the CVS log and this bug was fixed in r1.339 (9-Aug-2012)
&lt;http://dev.w3.org/cvsweb/html5/workers/Overview.html.diff?r1=1.338;r2=1.339;f=h&gt;
(aka r/7236) so I&apos;m changing it back to fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73982</commentid>
    <comment_count>5</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-09-16 14:28:59 +0000</bug_when>
    <thetext>Silvia, can you please take more care about resolving WebApps bugs? Maybe a user style for body.bz_product_WebAppsWG could help...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73983</commentid>
    <comment_count>6</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-09-16 14:35:04 +0000</bug_when>
    <thetext>I certainly will. I now know what to pay attention to. I apologize this was part of my first larger attempt at dealing with HTML WG bugs. Sorry about the 3 WebApps Bugs I should not have touched. :-(</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>