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

Issue 222003006: [webcrypto] Don't throw any extra WebIDL exceptions from WebCrypto methods. (Closed)

Created:
6 years, 8 months ago by eroman
Modified:
6 years, 8 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews
Visibility:
Public.

Description

[webcrypto] Don't throw any extra WebIDL exceptions from WebCrypto methods. The editors draft of WebIDL says that methods which return a Promise should not throw exceptions for such failures, but rather reject the promise with the error. This behavior is not implemented by the Blink generator yet, so this changelist doesn't completely fix the issue. However, it does remove some of the synchronous exceptions. BUG=357723, 245025 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171238

Patch Set 1 : #

Patch Set 2 : add missing expectation #

Total comments: 6

Patch Set 3 : Remove string builder #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -139 lines) Patch
M LayoutTests/crypto/digest-failures.html View 1 chunk +20 lines, -7 lines 0 comments Download
M LayoutTests/crypto/digest-failures-expected.txt View 2 chunks +6 lines, -3 lines 0 comments Download
M LayoutTests/crypto/exportKey-badParameters.html View 2 chunks +15 lines, -5 lines 0 comments Download
M LayoutTests/crypto/exportKey-badParameters-expected.txt View 2 chunks +4 lines, -2 lines 0 comments Download
M LayoutTests/crypto/importKey-badParameters.html View 1 chunk +17 lines, -6 lines 0 comments Download
D LayoutTests/crypto/importKey-badParameters-expected.txt View 1 2 chunks +6 lines, -3 lines 0 comments Download
M LayoutTests/crypto/sign-verify-badParameters.html View 1 chunk +16 lines, -3 lines 0 comments Download
M LayoutTests/crypto/sign-verify-badParameters-expected.txt View 2 chunks +6 lines, -3 lines 0 comments Download
M LayoutTests/crypto/unwrapKey-badParameters.html View 1 chunk +12 lines, -3 lines 0 comments Download
M LayoutTests/crypto/unwrapKey-badParameters-expected.txt View 2 chunks +6 lines, -3 lines 0 comments Download
M LayoutTests/crypto/wrapKey-badParameters.html View 1 chunk +12 lines, -3 lines 0 comments Download
M LayoutTests/crypto/wrapKey-badParameters-expected.txt View 2 chunks +6 lines, -3 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.h View 2 chunks +10 lines, -11 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 1 2 9 chunks +56 lines, -74 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.idl View 1 chunk +10 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
eroman
6 years, 8 months ago (2014-04-02 18:51:30 UTC) #1
abarth-chromium
https://codereview.chromium.org/222003006/diff/70001/Source/modules/crypto/SubtleCrypto.cpp File Source/modules/crypto/SubtleCrypto.cpp (right): https://codereview.chromium.org/222003006/diff/70001/Source/modules/crypto/SubtleCrypto.cpp#newcode49 Source/modules/crypto/SubtleCrypto.cpp:49: // currently doesn't. See also http://crbug.com/264520 Can we fix ...
6 years, 8 months ago (2014-04-02 20:42:39 UTC) #2
eroman
https://codereview.chromium.org/222003006/diff/70001/Source/modules/crypto/SubtleCrypto.cpp File Source/modules/crypto/SubtleCrypto.cpp (right): https://codereview.chromium.org/222003006/diff/70001/Source/modules/crypto/SubtleCrypto.cpp#newcode49 Source/modules/crypto/SubtleCrypto.cpp:49: // currently doesn't. See also http://crbug.com/264520 On 2014/04/02 20:42:40, ...
6 years, 8 months ago (2014-04-02 23:46:33 UTC) #3
eroman
ping
6 years, 8 months ago (2014-04-10 00:20:01 UTC) #4
abarth-chromium
LGTM Sorry for losing track of this CL!
6 years, 8 months ago (2014-04-10 00:31:15 UTC) #5
eroman
No problem! I am always impressed at how quickly you respond to reviews, and feel ...
6 years, 8 months ago (2014-04-10 00:32:28 UTC) #6
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 8 months ago (2014-04-10 00:42:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/222003006/110001
6 years, 8 months ago (2014-04-10 00:42:04 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 01:28:51 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-10 01:28:51 UTC) #10
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 8 months ago (2014-04-10 01:53:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/222003006/110001
6 years, 8 months ago (2014-04-10 01:53:36 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 03:30:43 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-10 03:30:44 UTC) #14
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 8 months ago (2014-04-10 06:10:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/222003006/110001
6 years, 8 months ago (2014-04-10 06:10:26 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 06:57:08 UTC) #17
Message was sent while issue was closed.
Change committed as 171238

Powered by Google App Engine
This is Rietveld 408576698