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

Issue 243853004: [webcrypto] Reject failed operations with a DOMException rather than null. (Closed)

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

Description

[webcrypto] Reject failed operations with a DOMException rather than null. This corresponds with the WebCrypto spec update: https://dvcs.w3.org/hg/webcrypto-api/rev/64993be45f9f BUG=245025 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172812

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Fix compile warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -535 lines) Patch
M LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures.html View 1 chunk +7 lines, -14 lines 0 comments Download
M LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures-expected.txt View 1 chunk +7 lines, -12 lines 0 comments Download
M LayoutTests/crypto/aes-cbc-parseAlgorithm-failures.html View 1 chunk +4 lines, -8 lines 0 comments Download
M LayoutTests/crypto/aes-cbc-parseAlgorithm-failures-expected.txt View 1 chunk +4 lines, -8 lines 0 comments Download
M LayoutTests/crypto/aes-ctr-generateKey-parseAlgorithm-failures.html View 1 chunk +4 lines, -8 lines 0 comments Download
M LayoutTests/crypto/aes-ctr-generateKey-parseAlgorithm-failures-expected.txt View 1 chunk +4 lines, -8 lines 0 comments Download
M LayoutTests/crypto/aes-ctr-parseAlgorithm-failures.html View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/aes-ctr-parseAlgorithm-failures-expected.txt View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/aes-gcm-parseAlgorithm-failures.html View 1 chunk +7 lines, -14 lines 0 comments Download
M LayoutTests/crypto/aes-gcm-parseAlgorithm-failures-expected.txt View 1 chunk +7 lines, -14 lines 0 comments Download
M LayoutTests/crypto/aes-key-algorithm-mismatch.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/aes-key-algorithm-mismatch-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/aes-key-usages.html View 2 chunks +2 lines, -4 lines 0 comments Download
M LayoutTests/crypto/aes-key-usages-expected.txt View 1 chunk +2 lines, -4 lines 0 comments Download
M LayoutTests/crypto/aes-kw-generateKey-parseAlgorithm-failures.html View 1 chunk +4 lines, -8 lines 0 comments Download
M LayoutTests/crypto/aes-kw-generateKey-parseAlgorithm-failures-expected.txt View 1 chunk +4 lines, -8 lines 0 comments Download
M LayoutTests/crypto/digest-failures.html View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/digest-failures-expected.txt View 1 chunk +6 lines, -11 lines 0 comments Download
M LayoutTests/crypto/exportKey-badParameters.html View 2 chunks +5 lines, -10 lines 0 comments Download
M LayoutTests/crypto/exportKey-badParameters-expected.txt View 1 chunk +5 lines, -10 lines 0 comments Download
M LayoutTests/crypto/exportKey-unextractable.html View 1 chunk +3 lines, -7 lines 0 comments Download
M LayoutTests/crypto/exportKey-unextractable-expected.txt View 1 chunk +3 lines, -6 lines 0 comments Download
M LayoutTests/crypto/hmac-generateKey-parseAlgorithm-failures.html View 1 chunk +9 lines, -18 lines 0 comments Download
M LayoutTests/crypto/hmac-generateKey-parseAlgorithm-failures-expected.txt View 1 chunk +9 lines, -18 lines 0 comments Download
M LayoutTests/crypto/importKey-badParameters.html View 1 chunk +8 lines, -16 lines 0 comments Download
M LayoutTests/crypto/importKey-badParameters-expected.txt View 1 chunk +8 lines, -16 lines 0 comments Download
M LayoutTests/crypto/resources/common.js View 1 1 chunk +2 lines, -7 lines 0 comments Download
M LayoutTests/crypto/rsa-es-generateKey-parseAlgorithm-failures.html View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/rsa-es-generateKey-parseAlgorithm-failures-expected.txt View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures.html View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures-expected.txt View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/sign-verify-badParameters.html View 1 chunk +5 lines, -10 lines 0 comments Download
M LayoutTests/crypto/sign-verify-badParameters-expected.txt View 1 chunk +5 lines, -10 lines 0 comments Download
M LayoutTests/crypto/unwrapKey-badParameters.html View 1 chunk +8 lines, -16 lines 0 comments Download
M LayoutTests/crypto/unwrapKey-badParameters-expected.txt View 1 chunk +8 lines, -14 lines 0 comments Download
M LayoutTests/crypto/unwrapKey-lacks-usage.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/unwrapKey-lacks-usage-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/wrapKey-badParameters.html View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/wrapKey-badParameters-expected.txt View 1 chunk +6 lines, -12 lines 0 comments Download
M LayoutTests/crypto/wrapKey-lacks-usage.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/wrapKey-lacks-usage-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/wrapKey-unextractable.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/wrapKey-unextractable-expected.txt View 2 chunks +1 line, -2 lines 0 comments Download
M Source/modules/crypto/CryptoResultImpl.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/crypto/CryptoResultImpl.cpp View 1 2 3 4 chunks +40 lines, -18 lines 0 comments Download
M Source/modules/crypto/Key.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/crypto/NormalizeAlgorithm.cpp View 1 20 chunks +128 lines, -79 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/CryptoResult.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/exported/WebCryptoResult.cpp View 1 chunk +2 lines, -8 lines 0 comments Download
M public/platform/WebCrypto.h View 1 4 chunks +29 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
eroman
6 years, 8 months ago (2014-04-19 02:26:33 UTC) #1
abarth-chromium
lgtm https://codereview.chromium.org/243853004/diff/1/Source/modules/crypto/NormalizeAlgorithm.cpp File Source/modules/crypto/NormalizeAlgorithm.cpp (right): https://codereview.chromium.org/243853004/diff/1/Source/modules/crypto/NormalizeAlgorithm.cpp#newcode768 Source/modules/crypto/NormalizeAlgorithm.cpp:768: } Can we make this static data rather ...
6 years, 8 months ago (2014-04-19 16:33:20 UTC) #2
eroman
https://codereview.chromium.org/243853004/diff/1/Source/modules/crypto/NormalizeAlgorithm.cpp File Source/modules/crypto/NormalizeAlgorithm.cpp (right): https://codereview.chromium.org/243853004/diff/1/Source/modules/crypto/NormalizeAlgorithm.cpp#newcode768 Source/modules/crypto/NormalizeAlgorithm.cpp:768: } On 2014/04/19 16:33:20, abarth wrote: > Can we ...
6 years, 8 months ago (2014-04-21 20:39:09 UTC) #3
abarth-chromium
On 2014/04/21 20:39:09, eroman wrote: > https://codereview.chromium.org/243853004/diff/1/Source/modules/crypto/NormalizeAlgorithm.cpp > File Source/modules/crypto/NormalizeAlgorithm.cpp (right): > > https://codereview.chromium.org/243853004/diff/1/Source/modules/crypto/NormalizeAlgorithm.cpp#newcode768 > ...
6 years, 8 months ago (2014-04-21 21:02:14 UTC) #4
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 7 months ago (2014-04-28 19:55:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/243853004/20001
6 years, 7 months ago (2014-04-28 19:55:35 UTC) #6
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 7 months ago (2014-04-28 20:04:18 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/243853004/40001
6 years, 7 months ago (2014-04-28 20:05:27 UTC) #8
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 7 months ago (2014-04-28 20:21:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/243853004/60001
6 years, 7 months ago (2014-04-28 20:21:27 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 22:28:03 UTC) #11
Message was sent while issue was closed.
Change committed as 172812

Powered by Google App Engine
This is Rietveld 408576698