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

Issue 2224393002: Fix a data race in WebMessagePortChannelImpl. (Closed)

Created:
4 years, 4 months ago by jbroman
Modified:
4 years, 4 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, darin-cc_chromium.org, jam, esprehn
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a data race in WebMessagePortChannelImpl. It's unsafe to pass a WebString (which is logically a RefPtr<StringImpl>) across threads because the underlying object is not thread-safe ref-counted. Instead, the base::string16 that the receiving method accepts should be constructed before posting the task. BUG=635659 Committed: https://crrev.com/414c42a0b400f213b58314c1b26926f9b897ac8a Cr-Commit-Position: refs/heads/master@{#410761}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M content/child/webmessageportchannel_impl.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 12 (6 generated)
jbroman
4 years, 4 months ago (2016-08-09 17:50:04 UTC) #4
Avi (use Gerrit)
This fix lgtm. How do we know we're not doing that elsewhere? Can we make ...
4 years, 4 months ago (2016-08-09 18:45:08 UTC) #5
jbroman
On 2016/08/09 at 18:45:08, avi wrote: > This fix lgtm. > > How do we ...
4 years, 4 months ago (2016-08-09 19:25:59 UTC) #6
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/2224393002/1
4 years, 4 months ago (2016-08-09 19:27:04 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-09 19:37:26 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 19:39:17 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/414c42a0b400f213b58314c1b26926f9b897ac8a
Cr-Commit-Position: refs/heads/master@{#410761}

Powered by Google App Engine
This is Rietveld 408576698