<?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>33029</bug_id>
          
          <creation_ts>2009-12-29 14:51:02 -0800</creation_ts>
          <short_desc>Re: Canvas drawn with data URL image raises SECURITY_ERR when toDataUrl() called.</short_desc>
          <delta_ts>2010-03-29 10:27:37 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://members.shaw.ca/briantclee/canvas.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Peter van der Zee">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>evan</cc>
    
    <cc>ian</cc>
    
    <cc>oliver</cc>
    
    <cc>rofreg</cc>
    
    <cc>sam</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>175715</commentid>
    <comment_count>0</comment_count>
    <who name="Peter van der Zee">webkit</who>
    <bug_when>2009-12-29 14:51:02 -0800</bug_when>
    <thetext>Reopening 29305 due to regression. Note that the Chrome nightly (r30453) on Windows currently does not show this problem. The WebKit nightly (r52593) on Windows does.

Original report follows:
---

Importing issue http://code.google.com/p/chromium/issues/detail?id=21847

Reported by btlee@google.com, Yesterday (36 hours ago)
Chrome Version       : 4.0.206.1 (Official Build 25376)
URLs (if applicable) : http://members.shaw.ca/briantclee/canvas.html
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
     Safari 4: FAIL. 
  Firefox 3.x: OK
     Opera 10: OK
         IE 7: FAIL. Canvas not supported.
         IE 8: FAIL. Canvas not supported.


What steps will reproduce the problem?
1. Have a webpage:
   1. Create an Image from a data URL.
   2. Create a canvas.
   3. Draw the image to the canvas.
   4. Call canvas.toDataURL().
2. Launch the webpage.


What is the expected result?
toDataURL() returns a data URL for the image drawn to the canvas.

What happens instead?
Error in the console: &quot;Uncaught Error: SECURITY_ERR: DOM Exception 18&quot;. 

Drawing from an image with source being a data URL seems to set the
origin-clean flag false. I don&apos;t think this should be although it doesn&apos;t
explicitly mention this in
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205514</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-03-29 10:27:37 -0700</bug_when>
    <thetext>Comment 5 by abarth@chromium.org, Sep 19, 2009
Fixed in http://trac.webkit.org/changeset/48556
Status: Fixed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>