Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Issue 2520973002: Fix a small error in exception handling in convertToBlob (Closed)

Created:
4 years, 1 month ago by xidachen
Modified:
4 years, 1 month ago
Reviewers:
xlai (Olivia)
CC:
chromium-reviews, blink-reviews, Justin Novosad
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/8e9a7bc6d79b084d3562563d2c2aa06c3390965d Cr-Commit-Position: refs/heads/master@{#433673}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-convertToBlob-exceptions.html View 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/cross-origin-OffscreenCanvas2D-convertToBlob.html View 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (7 generated)
xidachen
PTAL
4 years, 1 month ago (2016-11-21 16:09:28 UTC) #2
xlai (Olivia)
https://codereview.chromium.org/2520973002/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp File third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp (right): https://codereview.chromium.org/2520973002/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp#newcode208 third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp:208: IndexSizeError, "Zero-sized OffscreenCanvas cannot be transferred."); Also, change the ...
4 years, 1 month ago (2016-11-21 16:34:02 UTC) #3
xidachen
https://codereview.chromium.org/2520973002/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp File third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp (right): https://codereview.chromium.org/2520973002/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp#newcode208 third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp:208: IndexSizeError, "Zero-sized OffscreenCanvas cannot be transferred."); On 2016/11/21 16:34:00, ...
4 years, 1 month ago (2016-11-21 16:40:28 UTC) #4
xlai (Olivia)
On 2016/11/21 16:40:28, xidachen wrote: > https://codereview.chromium.org/2520973002/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp > File third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp (right): > > https://codereview.chromium.org/2520973002/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp#newcode208 > ...
4 years, 1 month ago (2016-11-21 19:23:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2520973002/20001
4 years, 1 month ago (2016-11-21 20:52:15 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-21 22:25:12 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 22:29:06 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8e9a7bc6d79b084d3562563d2c2aa06c3390965d
Cr-Commit-Position: refs/heads/master@{#433673}

Powered by Google App Engine
This is Rietveld 408576698