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

Issue 258026: Fix scripting during NPP_Destroy. Note that if the plugin is making a call t... (Closed)

Created:
11 years, 2 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
ananta
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), jam, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix scripting during NPP_Destroy. Note that if the plugin is making a call to the renderer so this instance is in the callstack, destruction will have to be asynchronous and so scripting still won't work. This change also fixes use of PluginChannel after it's deleted (if this was the last instance). BUG=23713, 23706 TEST=added ui test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28141

Patch Set 1 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -124 lines) Patch
M chrome/plugin/npobject_stub.h View 4 chunks +4 lines, -13 lines 0 comments Download
M chrome/plugin/npobject_stub.cc View 5 chunks +13 lines, -12 lines 1 comment Download
M chrome/plugin/plugin_channel.cc View 1 chunk +10 lines, -3 lines 1 comment Download
M chrome/plugin/webplugin_delegate_stub.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/plugin/webplugin_delegate_stub.cc View 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.h View 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 5 chunks +21 lines, -26 lines 2 comments Download
A chrome/test/data/npapi/ensure_scripting_works_in_destroy.html View 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/test/data/npapi/ensure_scripting_works_in_destroy_iframe.html View 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/test/ui/npapi_uitest.cc View 4 chunks +50 lines, -35 lines 0 comments Download
M webkit/glue/plugins/test/plugin_client.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M webkit/glue/plugins/test/plugin_npobject_lifetime_test.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/glue/plugins/test/plugin_test.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/plugins/test/plugin_test.cc View 2 chunks +29 lines, -18 lines 2 comments Download
MM webkit/glue/plugins/test/plugin_windowed_test.h View 1 chunk +3 lines, -1 line 0 comments Download
MM webkit/glue/plugins/test/plugin_windowed_test.cc View 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jam
http://codereview.chromium.org/258026/diff/4008/5020 File chrome/plugin/npobject_stub.cc (left): http://codereview.chromium.org/258026/diff/4008/5020#oldcode88 Line 88: npobject_ = NULL; note: I tracked this code ...
11 years, 2 months ago (2009-10-06 07:10:48 UTC) #1
ananta
LGTM++ http://codereview.chromium.org/258026/diff/4008/5013 File webkit/glue/plugins/test/plugin_test.cc (right): http://codereview.chromium.org/258026/diff/4008/5013#newcode92 Line 92: if (!window_obj) Nit: maybe we should do ...
11 years, 2 months ago (2009-10-06 18:18:24 UTC) #2
jam
11 years, 2 months ago (2009-10-06 19:12:39 UTC) #3
http://codereview.chromium.org/258026/diff/4008/5013
File webkit/glue/plugins/test/plugin_test.cc (right):

http://codereview.chromium.org/258026/diff/4008/5013#newcode92
Line 92: if (!window_obj)
On 2009/10/06 18:18:24, ananta wrote:
> Nit: maybe we should do this at the top of this function to avoid all the
> appends?. An unlikely scenario though.

Done.

Powered by Google App Engine
This is Rietveld 408576698