Closed Bug 489304 Opened 16 years ago Closed 14 years ago

canvas.toDataURL must return image/png on unsupported types

Categories

(Core :: Graphics: Canvas2D, defect)

1.9.2 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 401788

People

(Reporter: klaus.foerster, Unassigned)

References

()

Details

(Keywords: testcase, Whiteboard: [wfm in firefox 4?])

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 according to section 4.8.11 of the canvas specification canvas.toDataURL must return image/png on usupported types: http://www.whatwg.org/specs/web-apps/current-work/#dom-canvas-todataurl "Only support for image/png is required. User agents may support other types. If the user agent does not support the requested type, it must return the image using the PNG format" Reproducible: Always Steps to Reproduce: 1. open test at http://svg.cc/posts/canvas_toDataURL.html 2. Test should say "passed" and display base64 encoded image/png string Actual Results: ctx.canvas.toDataURL('type/unsupported') failed: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLCanvasElement.toDataURL]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://svg.cc/posts/canvas_toDataURL.html :: anonymous :: line 10" data: no] Expected Results: ctx.canvas.toDataURL('type/unsupported') passed: data:image/png;base64,....
This is a mass search for bugs which are in the Firefox General component, are UNCO, have not been changed for 500 days and have an unspecified version. Reporter, can you please update to Firefox 3.6.10 or later, create a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you still see the issue, please update this bug. If the issue is gone, please set the status to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
Firefox 3.6.11 on Ubuntu still has the same behaviour as described in the initial bug-report
Whiteboard: [CLOSEME 2010-11-01]
Version: unspecified → 3.6 Branch
the testcase works for me with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0b8pre) Gecko/20101106 Firefox/4.0b8pre, please confirm with a nightly build http://nightly.mozilla.org/
Component: General → Canvas: 2D
Keywords: testcase
Product: Firefox → Core
QA Contact: general → canvas.2d
Whiteboard: [wfm in firefox 4?]
Version: 3.6 Branch → 1.9.2 Branch
Yeah, this has been fixed since July or so.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.