Bug 158322 - CanvasRenderingContext2D.createPattern() / putImageData() throw wrong exception type
Summary: CanvasRenderingContext2D.createPattern() / putImageData() throw wrong excepti...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://heycam.github.io/webidl/#es-i...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-02 15:42 PDT by Chris Dumez
Modified: 2016-06-03 15:25 PDT (History)
10 users (show)

See Also:


Attachments
WIP patch (12.03 KB, patch)
2016-06-02 16:03 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
WIP Patch (12.03 KB, patch)
2016-06-02 16:52 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-yosemite (1.24 MB, application/zip)
2016-06-02 17:26 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews106 for mac-yosemite-wk2 (1.28 MB, application/zip)
2016-06-02 17:33 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews124 for ios-simulator-wk2 (901.71 KB, application/zip)
2016-06-02 17:48 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews115 for mac-yosemite (1.52 MB, application/zip)
2016-06-02 17:51 PDT, Build Bot
no flags Details
Patch (19.28 KB, patch)
2016-06-02 18:45 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-06-02 15:42:28 PDT
CanvasRenderingContext2D.createPattern() / putImageData() throws wrong exception type when the first parameter is null. It should throw a TypeError but it currently throws a legacy TYPE_MISMATCH_ERR:
http://www.w3.org/TR/2dcontext/#canvasrenderingcontext2d
http://www.w3.org/TR/2dcontext/#canvasimagesource
Comment 1 Chris Dumez 2016-06-02 16:03:27 PDT
Created attachment 280379 [details]
WIP patch
Comment 2 Chris Dumez 2016-06-02 16:52:11 PDT
Created attachment 280384 [details]
WIP Patch
Comment 3 Build Bot 2016-06-02 17:26:21 PDT
Comment on attachment 280384 [details]
WIP Patch

Attachment 280384 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1425561

New failing tests:
canvas/philip/tests/2d.pattern.image.null.html
canvas/philip/tests/2d.pattern.image.undefined.html
canvas/philip/tests/2d.imageData.put.null.html
imported/w3c/canvas/2d.pattern.image.undefined.html
Comment 4 Build Bot 2016-06-02 17:26:25 PDT
Created attachment 280390 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 5 Build Bot 2016-06-02 17:33:50 PDT
Comment on attachment 280384 [details]
WIP Patch

Attachment 280384 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1425582

New failing tests:
canvas/philip/tests/2d.pattern.image.null.html
canvas/philip/tests/2d.pattern.image.undefined.html
canvas/philip/tests/2d.imageData.put.null.html
imported/w3c/canvas/2d.pattern.image.undefined.html
Comment 6 Build Bot 2016-06-02 17:33:54 PDT
Created attachment 280391 [details]
Archive of layout-test-results from ews106 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 7 Build Bot 2016-06-02 17:48:29 PDT
Comment on attachment 280384 [details]
WIP Patch

Attachment 280384 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/1425624

New failing tests:
imported/w3c/canvas/2d.pattern.image.undefined.html
canvas/philip/tests/2d.pattern.image.undefined.html
canvas/philip/tests/2d.imageData.put.null.html
canvas/philip/tests/2d.pattern.image.null.html
Comment 8 Build Bot 2016-06-02 17:48:33 PDT
Created attachment 280393 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.4
Comment 9 Build Bot 2016-06-02 17:51:21 PDT
Comment on attachment 280384 [details]
WIP Patch

Attachment 280384 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1425637

New failing tests:
imported/w3c/canvas/2d.pattern.image.undefined.html
canvas/philip/tests/2d.pattern.image.undefined.html
canvas/philip/tests/2d.imageData.put.null.html
canvas/philip/tests/2d.pattern.image.null.html
Comment 10 Build Bot 2016-06-02 17:51:25 PDT
Created attachment 280394 [details]
Archive of layout-test-results from ews115 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 11 Chris Dumez 2016-06-02 18:45:57 PDT
Created attachment 280398 [details]
Patch
Comment 12 Chris Dumez 2016-06-02 22:28:24 PDT
Relevant Web IDL section:
https://heycam.github.io/webidl/#es-interface
Comment 13 Chris Dumez 2016-06-03 15:25:29 PDT
Comment on attachment 280398 [details]
Patch

Clearing flags on attachment: 280398

Committed r201664: <http://trac.webkit.org/changeset/201664>
Comment 14 Chris Dumez 2016-06-03 15:25:35 PDT
All reviewed patches have been landed.  Closing bug.