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

Issue 375005: When a plugin calls NPN_SetException, pass the exception along to every rende... (Closed)

Created:
11 years, 1 month ago by Nate Chapin
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org
Visibility:
Public.

Description

If an NP_* function is called on an out of process plugin, save enough info to send an NPN_SetException back to the correct renderer if necessary. BUG=26764 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32419

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Total comments: 8

Patch Set 8 : '' #

Total comments: 7

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -36 lines) Patch
M chrome/common/plugin_messages_internal.h View 1 2 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/plugin/npobject_proxy.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/plugin/npobject_proxy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/plugin/npobject_stub.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/plugin/npobject_stub.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/plugin/npobject_util.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -3 lines 0 comments Download
M chrome/plugin/plugin_channel_base.h View 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/plugin/plugin_channel_base.cc View 7 8 5 chunks +13 lines, -1 line 0 comments Download
M chrome/renderer/plugin_channel_host.h View 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/plugin_channel_host.cc View 7 8 2 chunks +13 lines, -0 lines 0 comments Download
A chrome/test/data/npapi/npobject_set_exception.html View 6 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/test/ui/npapi_uitest.cc View 6 7 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Nate Chapin
I debated rewriting NPObjectMsg_SetException to also take the NPObject* as a parameter, but I wasn't ...
11 years, 1 month ago (2009-11-16 16:45:44 UTC) #1
darin (slow to review)
Is it possible to write a test for this? Maybe by extending NPAPITester?
11 years, 1 month ago (2009-11-16 17:05:20 UTC) #2
Nate Chapin
I'll look into it, thanks. ~Nate On Mon, Nov 16, 2009 at 9:05 AM, <darin@chromium.org> ...
11 years, 1 month ago (2009-11-16 17:07:32 UTC) #3
Nate Chapin
I should probably point out that I have thus far never touched any tests other ...
11 years, 1 month ago (2009-11-16 17:33:40 UTC) #4
Nate Chapin
I've added the ui test, but the more I think about it, the more I ...
11 years, 1 month ago (2009-11-16 19:06:42 UTC) #5
Nate Chapin
On 2009/11/16 19:06:42, Nate Chapin wrote: > I've added the ui test, but the more ...
11 years, 1 month ago (2009-11-16 20:26:01 UTC) #6
jam
http://codereview.chromium.org/375005/diff/6003/10009 File chrome/plugin/npobject_stub.cc (right): http://codereview.chromium.org/375005/diff/6003/10009#newcode76 Line 76: current_renderer_channel_ = channel_; Why not do this in ...
11 years, 1 month ago (2009-11-16 21:18:44 UTC) #7
Nate Chapin
On Mon, Nov 16, 2009 at 1:18 PM, <jam@chromium.org> wrote: > > http://codereview.chromium.org/375005/diff/6003/10009 > File ...
11 years, 1 month ago (2009-11-16 21:48:32 UTC) #8
jam
On 2009/11/16 21:48:32, Nate Chapin wrote: > That seems reasonable (I hadn't paid enough attention ...
11 years, 1 month ago (2009-11-16 21:53:21 UTC) #9
Nate Chapin
On 2009/11/16 21:53:21, John Abd-El-Malek wrote: > On 2009/11/16 21:48:32, Nate Chapin wrote: > > ...
11 years, 1 month ago (2009-11-16 22:42:51 UTC) #10
jam
http://codereview.chromium.org/375005/diff/11008/8013 File chrome/plugin/npobject_stub.cc (right): http://codereview.chromium.org/375005/diff/11008/8013#newcode375 Line 375: void NPObjectStub::NPN_SetException(NPObject* obj, const NPUTF8* message) { Since ...
11 years, 1 month ago (2009-11-17 00:04:13 UTC) #11
Nate Chapin
I think I got them all....sorry for my ignorance of the Chromium style guide. http://codereview.chromium.org/375005/diff/11008/8013 ...
11 years, 1 month ago (2009-11-17 00:37:20 UTC) #12
jam
sorry for dragging this on! http://codereview.chromium.org/375005/diff/6006/6014 File chrome/common/plugin_messages_internal.h (right): http://codereview.chromium.org/375005/diff/6006/6014#newcode413 Line 413: IPC_SYNC_MESSAGE_CONTROL1_0(NPObjectMsg_SetException, nit: now ...
11 years, 1 month ago (2009-11-17 00:49:20 UTC) #13
Nate Chapin
I do not object to nitpicks and dragging on when the nits are legitimate and ...
11 years, 1 month ago (2009-11-17 17:20:59 UTC) #14
jam
11 years, 1 month ago (2009-11-18 01:30:08 UTC) #15
lgtm

http://codereview.chromium.org/375005/diff/6006/6014
File chrome/common/plugin_messages_internal.h (right):

http://codereview.chromium.org/375005/diff/6006/6014#newcode413
Line 413: IPC_SYNC_MESSAGE_CONTROL1_0(NPObjectMsg_SetException,
On 2009/11/17 17:20:59, Nate Chapin wrote:
> On 2009/11/17 00:49:20, John Abd-El-Malek wrote:
> > nit: now that this isn't going between NPObject's, it should be a PluginHost
> > message and moved to that section
> 
> Done, though do these really belong in PluginHost, or should they be in a new
> PluginChannelHost block?
> 

messages from plugin to renderer process are in the PluginHost block.  The
message block names don't map exactly to PluginChannel/PluginChannelHost.

Powered by Google App Engine
This is Rietveld 408576698