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

Issue 715073002: Early return from WebPluginContainerImpl::scriptableObject if the plugin gets destroyed (Closed)

Created:
6 years, 1 month ago by raymes
Modified:
6 years, 1 month ago
CC:
blink-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Early return from WebPluginContainerImpl::scriptableObject if the plugin gets destroyed WebPluginContainerImpl::scriptableObject calls into WebPlugin::scriptableObject which (in the PepperWebPluginImpl implementation) sends synchronous messages to the plugin which can result in re-entrancy. This re-entrancy may cause the plugin to be destroyed, which sets m_webPlugin to null in WebPluginContainerImpl::dispose. We need to check for a null value to avoid dereferencing a null pointer. BUG=423263 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185182

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M Source/web/WebPluginContainerImpl.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
raymes
Please let me know your thoughts! I can always revert this if it turns out ...
6 years, 1 month ago (2014-11-11 23:25:23 UTC) #2
jochen (gone - plz use gerrit)
lgtm
6 years, 1 month ago (2014-11-12 02:30:20 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715073002/1
6 years, 1 month ago (2014-11-12 05:55:51 UTC) #5
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 06:31:08 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 185182

Powered by Google App Engine
This is Rietveld 408576698