Closed Bug 564332 Opened 14 years ago Closed 13 years ago

putImageData throws exception when drawing to a smaller canvas

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Parasyte, Unassigned)

References

()

Details

(Keywords: html5, testcase)

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Build Identifier: 

When drawing an ImageData object to a canvas using putImageData, NS_ERROR_DOM_SYNTAX_ERR is thrown if the canvas width or height is smaller than the ImageData.

Reproducible: Always
Attached file Test (obsolete) —
This is the test case.  It works correctly in the latest Safari and Opera releases (all canvases are green).
Keywords: testcase
Attached file Test case v2 (obsolete) —
Fixed some silly problems with HTML structure, and not properly filling the fourth canvas with the initial red color.
Attachment #443994 - Attachment is obsolete: true
Attached file Test case v3
Bork bork bork!  I should really check what I'm uploading.
Attachment #443995 - Attachment is obsolete: true
Yeah, this was apparently a spec change...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: helpwanted, html5
FWIW, the WIP patch in bug 498826 fixes this issue.
Test case v3 is passing at my end (with both Firefox 7.0.1 and with nightly build on Linux). I guess this issue is fixed now.
I also confirmed Test case v3 is all green.
Resolving per comment #5 and #6.
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: helpwanted
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: