putImageData throws exception when drawing to a smaller canvas

RESOLVED FIXED

Status

()

Core
Canvas: 2D
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: Parasyte, Unassigned)

Tracking

({html5, testcase})

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment, 2 obsolete attachments)

(Reporter)

Description

7 years ago
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
(Reporter)

Comment 1

7 years ago
Created attachment 443994 [details]
Test

This is the test case.  It works correctly in the latest Safari and Opera releases (all canvases are green).
(Reporter)

Updated

7 years ago
Keywords: testcase
(Reporter)

Comment 2

7 years ago
Created attachment 443995 [details]
Test case v2

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
(Reporter)

Comment 3

7 years ago
Created attachment 443997 [details]
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

Comment 5

7 years ago
FWIW, the WIP patch in bug 498826 fixes this issue.

Comment 6

6 years ago
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
Last Resolved: 6 years ago
Keywords: helpwanted
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.