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

Issue 9655019: Fix a crash related to PPAPI scripting. (Closed)

Created:
8 years, 9 months ago by yzshen1
Modified:
8 years, 9 months ago
Reviewers:
brettw
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Fix a crash related to PPAPI scripting. SerializedVar and MessageChannel didn't properly handle the case that the dispatcher goes away while waiting for the reply to a sync message. BUG=110095 TEST=When click the Test button on ppapi/example/example.html, the plugin is removed but the renderer doesn't crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126014

Patch Set 1 #

Patch Set 2 : sync #

Patch Set 3 : Fix constructor init list order. #

Total comments: 2

Patch Set 4 : Changes in response to Brett's suggestions. #

Patch Set 5 : Fix line endings. #

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -138 lines) Patch
M ppapi/example/example.cc View 3 chunks +12 lines, -4 lines 0 comments Download
M ppapi/example/example.html View 1 chunk +7 lines, -3 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 4 chunks +4 lines, -3 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/host_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/host_var_serialization_rules.h View 2 chunks +4 lines, -9 lines 0 comments Download
M ppapi/proxy/host_var_serialization_rules.cc View 4 chunks +4 lines, -14 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 3 chunks +5 lines, -2 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.h View 1 2 3 1 chunk +17 lines, -6 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.cc View 1 2 5 chunks +16 lines, -17 lines 0 comments Download
M ppapi/proxy/serialized_var.h View 1 2 3 4 5 8 chunks +8 lines, -18 lines 0 comments Download
M ppapi/proxy/serialized_var.cc View 1 2 3 4 5 14 chunks +11 lines, -28 lines 0 comments Download
M ppapi/proxy/var_serialization_rules.h View 5 chunks +5 lines, -9 lines 0 comments Download
M webkit/plugins/ppapi/message_channel.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/message_channel.cc View 11 chunks +27 lines, -19 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yzshen1
Hi, Brett. Would you please take a look? Thanks!
8 years, 9 months ago (2012-03-09 04:29:01 UTC) #1
brettw
lgtm http://codereview.chromium.org/9655019/diff/6006/ppapi/proxy/plugin_var_serialization_rules.h File ppapi/proxy/plugin_var_serialization_rules.h (right): http://codereview.chromium.org/9655019/diff/6006/ppapi/proxy/plugin_var_serialization_rules.h#newcode39 ppapi/proxy/plugin_var_serialization_rules.h:39: // In most cases, |dispatcher_| won't be NULL. ...
8 years, 9 months ago (2012-03-09 21:57:22 UTC) #2
yzshen1
Thanks, Brett! http://codereview.chromium.org/9655019/diff/6006/ppapi/proxy/plugin_var_serialization_rules.h File ppapi/proxy/plugin_var_serialization_rules.h (right): http://codereview.chromium.org/9655019/diff/6006/ppapi/proxy/plugin_var_serialization_rules.h#newcode39 ppapi/proxy/plugin_var_serialization_rules.h:39: // In most cases, |dispatcher_| won't be ...
8 years, 9 months ago (2012-03-09 22:05:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9655019/9001
8 years, 9 months ago (2012-03-09 22:20:41 UTC) #4
commit-bot: I haz the power
Try job failure for 9655019-9001 (retry) on linux_clang for step "update". It's a second try, ...
8 years, 9 months ago (2012-03-09 22:26:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9655019/15006
8 years, 9 months ago (2012-03-09 23:18:04 UTC) #6
commit-bot: I haz the power
Try job failure for 9655019-15006 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=7608 Step "update" is always ...
8 years, 9 months ago (2012-03-09 23:20:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9655019/12004
8 years, 9 months ago (2012-03-10 03:30:17 UTC) #8
commit-bot: I haz the power
8 years, 9 months ago (2012-03-10 06:51:50 UTC) #9
Change committed as 126014

Powered by Google App Engine
This is Rietveld 408576698