See HTML5 spec 4.8.11: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-canvas-todataurl "User agents must convert the provided type to ASCII lowercase before establishing if they support that type and before creating the data: URL."
Created attachment 56146 [details] Proposed patch
Comment on attachment 56146 [details] Proposed patch I would suggest linking to the spec in the ChangeLog, at least before landing.
Created attachment 56168 [details] Patch for landing
Comment on attachment 56168 [details] Patch for landing Clearing flags on attachment: 56168 Committed r59565: <http://trac.webkit.org/changeset/59565>
All reviewed patches have been landed. Closing bug.
http://trac.webkit.org/changeset/59565 might have broken GTK Linux 32-bit Release
This broke gtk. I can't roll it out from my phone, but someone should feel free to. :) it may just need espectations update. ;)
http://build.webkit.org/results/GTK%20Linux%2032-bit%20Release/r59565%20(12768)/fast/canvas/canvas-toDataURL-case-insensitive-mimetype-pretty-diff.html
Rolling out.
Created attachment 56181 [details] Updated patch with specialized GTK expectations Apparently GTK doesn't support the image/jpeg mimetype so the test outcome differs slightly.
Comment on attachment 56181 [details] Updated patch with specialized GTK expectations Clearing flags on attachment: 56181 Committed r59581: <http://trac.webkit.org/changeset/59581>
Revision r59581 cherry-picked into qtwebkit-2.0 with commit ad27430eb1173d688a5a335edadb1c0d55462732