<?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>15095</bug_id>
          
          <creation_ts>2011-12-07 06:28:30 +0000</creation_ts>
          <short_desc>Allow data: URL for new Worker(). Supported by Opera and Firefox.</short_desc>
          <delta_ts>2012-08-09 18:30:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</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>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61079</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-12-07 06:28:30 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61167</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-07 23:29:19 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61223</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-12-08 09:16:08 +0000</bug_when>
    <thetext>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>70464</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:59:33 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18001 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71218</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-20 03:32:14 +0000</bug_when>
    <thetext>I&apos;ve added this, but am leaving this bug open to deal with the following problem currently in the spec: the SharedWorker constructor doesn&apos;t use the origin of the script of the worker (it uses the origin of the URL of the location attribute, which is always unique for data: URLs).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71982</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-08-09 18:02:55 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7235.
Check-in comment: Improve compatibiliy for legacy features.
http://html5.org/tools/web-apps-tracker?from=7234&amp;to=7235</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71985</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-08-09 18:30:04 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7236.
Check-in comment: Recast how the origin handling is done for data: URLs in workers, and fix the shared worker origin handling for data: URLs so that you can actually reconnect to a data: shared worker.
http://html5.org/tools/web-apps-tracker?from=7235&amp;to=7236</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71986</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-09 18:30:39 +0000</bug_when>
    <thetext>disregard comment 5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>