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

Issue 145083006: [webcrypto] Add error messages for failed operations. (Closed)

Created:
6 years, 11 months ago by eroman
Modified:
6 years, 10 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, padolph
Visibility:
Public.

Description

[webcrypto] Add error messages for failed operations. BUG=245025 BUG=331665 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248062

Patch Set 1 : INCOMPLETE (needs OpenSSL file, and error-specific tests) #

Patch Set 2 : Check the Status in unittests #

Total comments: 24

Patch Set 3 : address rsleevi comments #

Patch Set 4 : Add webcrypto:: prefix to Status #

Patch Set 5 : Revert webcrypto:: prefixing #

Patch Set 6 : Add openssl file #

Patch Set 7 : Add comments about the status, rename some errors, and change a few #

Patch Set 8 : Add unittests for verification failure with empty signature #

Patch Set 9 : Remove CompletedWithError() and use a different pattern #

Patch Set 10 : Fix compiler warning on windows #

Total comments: 27

Patch Set 11 : Address sleevi comments #

Patch Set 12 : Try again to upload.. #

Total comments: 1

Patch Set 13 : Change parens #

Patch Set 14 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+987 lines, -547 lines) Patch
M content/renderer/webcrypto/webcrypto_impl.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +12 lines, -11 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +84 lines, -64 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_impl_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 56 chunks +143 lines, -123 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_impl_openssl.cc View 1 2 3 4 5 6 7 8 9 10 21 chunks +84 lines, -82 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 89 chunks +366 lines, -265 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +158 lines, -0 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +140 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
eroman
This isn't quite ready for review yet, but sending it out early to get high ...
6 years, 11 months ago (2014-01-23 00:36:01 UTC) #1
eroman
This is ready for review now, PTAL.
6 years, 11 months ago (2014-01-23 22:20:16 UTC) #2
Ryan Sleevi
I've not reviewed all of the error cases and conditions. My biggest concern with this ...
6 years, 11 months ago (2014-01-24 01:21:50 UTC) #3
eroman
https://codereview.chromium.org/145083006/diff/80001/content/renderer/webcrypto/webcrypto_impl.cc File content/renderer/webcrypto/webcrypto_impl.cc (right): https://codereview.chromium.org/145083006/diff/80001/content/renderer/webcrypto/webcrypto_impl.cc#newcode23 content/renderer/webcrypto/webcrypto_impl.cc:23: using webcrypto::Status; On 2014/01/24 01:21:50, Ryan Sleevi wrote: > ...
6 years, 11 months ago (2014-01-24 03:19:20 UTC) #4
Ryan Sleevi
Still needing to go through to consider the security implications, although I'm fully on board ...
6 years, 11 months ago (2014-01-24 20:27:01 UTC) #5
eroman
> Still needing to go through to consider the security > implications, Let me give ...
6 years, 11 months ago (2014-01-24 21:33:10 UTC) #6
eroman
https://codereview.chromium.org/145083006/diff/80001/content/renderer/webcrypto/webcrypto_util.h File content/renderer/webcrypto/webcrypto_util.h (right): https://codereview.chromium.org/145083006/diff/80001/content/renderer/webcrypto/webcrypto_util.h#newcode62 content/renderer/webcrypto/webcrypto_util.h:62: static Status ErrorKeyLength(); On 2014/01/24 20:27:01, Ryan Sleevi wrote: ...
6 years, 11 months ago (2014-01-25 00:53:09 UTC) #7
eroman
https://codereview.chromium.org/145083006/diff/80001/content/renderer/webcrypto/webcrypto_impl.cc File content/renderer/webcrypto/webcrypto_impl.cc (right): https://codereview.chromium.org/145083006/diff/80001/content/renderer/webcrypto/webcrypto_impl.cc#newcode29 content/renderer/webcrypto/webcrypto_impl.cc:29: bool completeWithError(const Status& status, blink::WebCryptoResult* result) { On 2014/01/24 ...
6 years, 11 months ago (2014-01-25 03:26:08 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/145083006/diff/550001/content/renderer/webcrypto/webcrypto_impl.cc File content/renderer/webcrypto/webcrypto_impl.cc (right): https://codereview.chromium.org/145083006/diff/550001/content/renderer/webcrypto/webcrypto_impl.cc#newcode187 content/renderer/webcrypto/webcrypto_impl.cc:187: CompleteWithError(status, &result); Does it make sense for this pattern ...
6 years, 10 months ago (2014-01-28 21:11:58 UTC) #9
eroman
Rietveld keeps 500-ing so you may not be able to see my new patchset yet, ...
6 years, 10 months ago (2014-01-28 22:59:08 UTC) #10
Ryan Sleevi
Can you re-upload? Seems to have failed upload?
6 years, 10 months ago (2014-01-28 23:31:33 UTC) #11
eroman
Done
6 years, 10 months ago (2014-01-29 01:02:27 UTC) #12
Ryan Sleevi
lgtm https://codereview.chromium.org/145083006/diff/700001/content/renderer/webcrypto/webcrypto_impl.cc File content/renderer/webcrypto/webcrypto_impl.cc (right): https://codereview.chromium.org/145083006/diff/700001/content/renderer/webcrypto/webcrypto_impl.cc#newcode523 content/renderer/webcrypto/webcrypto_impl.cc:523: extractable = extractable && jwk_extractable_value; FWIW (and in ...
6 years, 10 months ago (2014-01-30 18:43:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/145083006/740001
6 years, 10 months ago (2014-01-30 19:35:30 UTC) #14
commit-bot: I haz the power
Retried try job too often on mac for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=120037
6 years, 10 months ago (2014-01-30 19:52:44 UTC) #15
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 19:52:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/145083006/740001
6 years, 10 months ago (2014-01-30 19:55:46 UTC) #17
commit-bot: I haz the power
Change committed as 248062
6 years, 10 months ago (2014-01-30 22:40:20 UTC) #18
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 22:40:29 UTC) #19
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698