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

Issue 278513004: [webcrypto] Fix a race in BlinkPlatformImpl::crypto(), by using eager initilization of WebCryptoImpl (Closed)

Created:
6 years, 7 months ago by eroman
Modified:
6 years, 7 months ago
Reviewers:
jam, Ryan Sleevi
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

[webcrypto] Fix a race in BlinkPlatformImpl::crypto(), by using eager initilization of WebCryptoImpl. BUG=371243, 245025 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270215

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Do initialization as part of crypto() #

Total comments: 4

Patch Set 4 : Address sleevi comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M content/child/blink_platform_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M content/child/webcrypto/shared_crypto.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/child/webcrypto/webcrypto_impl.h View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M content/child/webcrypto/webcrypto_impl.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
eroman
6 years, 7 months ago (2014-05-08 05:25:09 UTC) #1
Ryan Sleevi
This seems like it attempts to paper over the issue, rather than look at architectural ...
6 years, 7 months ago (2014-05-09 18:58:39 UTC) #2
eroman
What smells to you?
6 years, 7 months ago (2014-05-09 19:00:26 UTC) #3
Ryan Sleevi
On 2014/05/09 19:00:26, eroman wrote: > What smells to you? blink::Platform being accessed from multiple ...
6 years, 7 months ago (2014-05-09 19:12:30 UTC) #4
eroman
@jam: Could you review this?
6 years, 7 months ago (2014-05-09 19:19:04 UTC) #5
jam
I agree with Ryan that calling webcrypto::Init() in every WebCrypto method is error-prone; someone could ...
6 years, 7 months ago (2014-05-09 20:18:29 UTC) #6
eroman
To answer the question of performance, on my z620 running Linux: - EnsureNSSInit() averaged 70ms ...
6 years, 7 months ago (2014-05-12 23:21:25 UTC) #7
Ryan Sleevi
On May 12, 2014 4:21 PM, <eroman@chromium.org> wrote: > > To answer the question of ...
6 years, 7 months ago (2014-05-12 23:26:35 UTC) #8
eroman
See my explanation above. I conducted tests using content_shell. The pre-initialization is Chrome-Linux specific On ...
6 years, 7 months ago (2014-05-12 23:33:00 UTC) #9
Ryan Sleevi
Sorry, I suppose the question wasn't clear. Your response is still lacking a bit of ...
6 years, 7 months ago (2014-05-12 23:40:52 UTC) #10
eroman
Ryan, I can come back with numbers for other platforms, but I am not sure ...
6 years, 7 months ago (2014-05-13 00:08:41 UTC) #11
Ryan Sleevi
On Mon, May 12, 2014 at 5:08 PM, Eric Roman <eroman@chromium.org> wrote: > Ryan, I ...
6 years, 7 months ago (2014-05-13 00:16:15 UTC) #12
eroman
PTAL: Moved the initialization into BlinkPlatformImpl::crypto()
6 years, 7 months ago (2014-05-13 00:33:27 UTC) #13
Ryan Sleevi
lgtm https://codereview.chromium.org/278513004/diff/40001/content/child/webcrypto/shared_crypto.h File content/child/webcrypto/shared_crypto.h (right): https://codereview.chromium.org/278513004/diff/40001/content/child/webcrypto/shared_crypto.h#newcode25 content/child/webcrypto/shared_crypto.h:25: // from concurrent threads. lazy vs one-time is ...
6 years, 7 months ago (2014-05-13 05:47:19 UTC) #14
jam
lgtm
6 years, 7 months ago (2014-05-13 16:39:26 UTC) #15
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 7 months ago (2014-05-13 18:25:07 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/278513004/60001
6 years, 7 months ago (2014-05-13 18:26:33 UTC) #17
eroman
https://codereview.chromium.org/278513004/diff/40001/content/child/webcrypto/shared_crypto.h File content/child/webcrypto/shared_crypto.h (right): https://codereview.chromium.org/278513004/diff/40001/content/child/webcrypto/shared_crypto.h#newcode25 content/child/webcrypto/shared_crypto.h:25: // from concurrent threads. On 2014/05/13 05:47:20, Ryan Sleevi ...
6 years, 7 months ago (2014-05-13 18:27:15 UTC) #18
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 21:40:22 UTC) #19
Message was sent while issue was closed.
Change committed as 270215

Powered by Google App Engine
This is Rietveld 408576698