[Webkit-unassigned] [Bug 33029] New: Re: Canvas drawn with data URL image raises SECURITY_ERR when toDataUrl() called.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 29 14:51:03 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=33029

           Summary: Re: Canvas drawn with data URL image raises
                    SECURITY_ERR when toDataUrl() called.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://members.shaw.ca/briantclee/canvas.html
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bugzilla at qfox.nl
                CC: ap at webkit.org, ian at hixie.ch, sam at webkit.org,
                    oliver at apple.com, annevankesteren+webkit at gmail.com,
                    evan at chromium.org, bugzilla at qfox.nl


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 at 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: "Uncaught Error: SECURITY_ERR: DOM Exception 18". 

Drawing from an image with source being a data URL seems to set the
origin-clean flag false. I don't think this should be although it doesn't
explicitly mention this in
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list