RESOLVED FIXED Bug 132412
Calling ctx.createImageData with non-finite data should generate a type error
https://bugs.webkit.org/show_bug.cgi?id=132412
Summary Calling ctx.createImageData with non-finite data should generate a type error
Rik Cabanier
Reported 2014-04-30 17:17:31 PDT
Currently this generate a NOT_SUPPORTED_ERROR which is wrong per the WebIDL spec
Attachments
Patch (6.54 KB, patch)
2014-04-30 17:20 PDT, Rik Cabanier
no flags
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 (1.02 MB, application/zip)
2014-04-30 17:47 PDT, Build Bot
no flags
Patch (10.23 KB, patch)
2014-04-30 21:39 PDT, Rik Cabanier
no flags
Patch (83.55 KB, patch)
2014-05-01 00:55 PDT, Rik Cabanier
no flags
Rik Cabanier
Comment 1 2014-04-30 17:20:48 PDT
Build Bot
Comment 2 2014-04-30 17:47:52 PDT
Comment on attachment 230543 [details] Patch Attachment 230543 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4809378834153472 New failing tests: fast/canvas/canvas-2d-imageData-create-nonfinite.html
Build Bot
Comment 3 2014-04-30 17:47:55 PDT
Created attachment 230548 [details] Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-15 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Rik Cabanier
Comment 4 2014-04-30 21:39:20 PDT
Dirk Schulze
Comment 5 2014-04-30 23:58:32 PDT
Do you have link to the spec?
Rik Cabanier
Comment 6 2014-05-01 00:07:42 PDT
(In reply to comment #5) > Do you have link to the spec? http://www.w3.org/TR/WebIDL/#es-double
Dirk Schulze
Comment 7 2014-05-01 00:27:46 PDT
Oh, it is about double.... then the real fix would be to change our WebIDL interpreter. It seems fine to change it in Context2D in the meantime.
Rik Cabanier
Comment 8 2014-05-01 00:55:06 PDT
Rik Cabanier
Comment 9 2014-05-01 00:56:26 PDT
Comment on attachment 230570 [details] Patch submitted by accident
WebKit Commit Bot
Comment 10 2014-05-01 01:34:16 PDT
Comment on attachment 230560 [details] Patch Clearing flags on attachment: 230560 Committed r168092: <http://trac.webkit.org/changeset/168092>
WebKit Commit Bot
Comment 11 2014-05-01 01:34:21 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 12 2014-05-01 10:04:33 PDT
> then the real fix would be to change our WebIDL interpreter. Is there a bug tracking the right fix? It would be helpful to have a FIXME in code referencing the bug, so that we can more easily remove this workaround when it's no longer needed.
Alexey Proskuryakov
Comment 13 2014-05-01 10:06:30 PDT
(rs=me to add a line with the FIXME)
Rik Cabanier
Comment 14 2014-05-01 13:23:46 PDT
(In reply to comment #12) > > then the real fix would be to change our WebIDL interpreter. > > Is there a bug tracking the right fix? It would be helpful to have a FIXME in code referencing the bug, so that we can more easily remove this workaround when it's no longer needed. yes, see https://bugs.webkit.org/show_bug.cgi?id=101783 The 'isFinite' testing is all over the codebase. Do you want me to add a todo to just the lines that I touched?
Alexey Proskuryakov
Comment 15 2014-05-01 14:05:15 PDT
If it's already all over the place, then there is no point indeed.
Note You need to log in before you can comment on or make changes to this bug.