Closed
Bug 632469
Opened 15 years ago
Closed 15 years ago
Handle non-finite values for clearRect per spec
Categories
(Core :: Graphics: Canvas2D, defect)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
Details
(Keywords: dev-doc-complete, html5)
Attachments
(1 file, 1 obsolete file)
|
1.43 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Flags: in-testsuite+
Attachment #510676 -
Flags: review?(Olli.Pettay)
Comment 1•15 years ago
|
||
Comment on attachment 510676 [details] [diff] [review]
Patch v1
So why doesn't .clearRect throw?
Seems like canvas API is all but consistent when to throw and when not.
| Assignee | ||
Comment 2•15 years ago
|
||
I apparently was wrong before. The spec silently ignores all non-finite arguments, except when creating CanvasGradient and ImageData objects, and it throws for negative radii, which, I suppose, would be caused by a bogus calculation.
Updated•15 years ago
|
Attachment #510676 -
Flags: review?(Olli.Pettay) → review+
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: [needs landing]
| Assignee | ||
Comment 3•15 years ago
|
||
Attachment #510676 -
Attachment is obsolete: true
Comment 4•15 years ago
|
||
Whiteboard: fixed-in-cedar
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
No longer depends on: post2.0
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: fixed-in-cedar
Target Milestone: --- → mozilla2.2
Updated•15 years ago
|
Keywords: dev-doc-needed
Comment 6•15 years ago
|
||
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•