commit | 8e9a7bc6d79b084d3562563d2c2aa06c3390965d | [log] [tgz] |
---|---|---|
author | xidachen <xidachen@chromium.org> | Mon Nov 21 22:24:42 2016 |
committer | Commit bot <commit-bot@chromium.org> | Mon Nov 21 22:28:54 2016 |
tree | 51ef8c692655e72555af797c4a8bdadba77f2f9d | |
parent | 98f9d3d3701659faadcd20bc6473538fdcf379ef [diff] |
Fix a small error in exception handling in convertToBlob The spec for convertToBlob is here: https://html.spec.whatwg.org/multipage/scripting.html#dom-offscreencanvas-converttoblob There are three cases where this API should throw exception, and we don't have the test to cover that. Also, our code does not handle the third case in the above spec. This CL adds layout tests to cover the exception cases and fix the third case. BUG=659260 Review-Url: https://codereview.chromium.org/2520973002 Cr-Commit-Position: refs/heads/master@{#433673}