<?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>123978</bug_id>
          
          <creation_ts>2013-11-07 02:19:15 -0800</creation_ts>
          <short_desc>CORS enabled data:URL images fail to load</short_desc>
          <delta_ts>2014-06-11 08:25:20 -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>Images</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <dependson>109199</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Kienzle">stefankienzle.de</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>syoichi</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>948159</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Kienzle">stefankienzle.de</who>
    <bug_when>2013-11-07 02:19:15 -0800</bug_when>
    <thetext>Steps to reproduce the problem:
I want to load CORS enabled data:URL images (in JS or HTML) - both cases are failing.
JS:
var img = document.createElement(&apos;img&apos;);
img.onload = function () {
 ...
};
img.crossOrigin = &apos;&apos;;
img.src = &lt;data-url&gt;;

HTML:
&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAlQTFRFa2tr3Nzc////HKA8dAAAAD9JREFUeNpiYCAAmMCAkQkrTaQ0DkAdaZx2AxmMQAAmYUwmGDmoXU6ZNCPCl5jkoHY5ZU4jyt+D0uV4DQcIMADuxwY6Y1aBvAAAAABJRU5ErkJggg==&quot; crossorigin /&gt;

Open this jsfiddle: http://jsfiddle.net/Kienz/Dv3Eu/ 
You should see three w3c images!

What is the expected behavior?
Images should be loaded.

What went wrong?
The images don&apos;t load and you got the following error in dev console:
Cross-origin image load denied by Cross-Origin Resource Sharing policy.

In Safari 5.1 (Windows 7) it works. Safari 7 (Mac OS 10.9) it fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1014731</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2014-06-11 06:33:50 -0700</bug_when>
    <thetext>The case of crossorigin=&quot;anonymous&quot; should be handled once data url processing is handled within WebCore (see bug 109199).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>