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

Issue 6693052: Don't retain NPNVWindowNPObject and NPNVPluginElementNPObject twice (Closed)

Created:
9 years, 8 months ago by davidben
Modified:
9 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Don't retain NPNVWindowNPObject and NPNVPluginElementNPObject twice Both NPN_GetValue and WebPluginProxy take a reference on access, with the latter conflating the caller's reference and its internal reference. To be consistent with WebPluginImpl, let WebPluginProxy only manage its internal reference and leave the plugin's reference to NPN_GetValue. Document this in the WebPlugin interface. Also release plugin-side proxies when WebPluginProxy is destroyed. R=ananta BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88773

Patch Set 1 #

Patch Set 2 : release plugin_element_ and window_npobject_ proxies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M content/plugin/webplugin_proxy.cc View 1 3 chunks +7 lines, -2 lines 0 comments Download
M webkit/plugins/npapi/webplugin.h View 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
davidben
This is what happens when you try to become nspluginwrapper's new upstream and get in ...
9 years, 8 months ago (2011-04-02 23:57:06 UTC) #1
brettw
I'd prefer to have John take a look at this.
9 years, 8 months ago (2011-04-04 16:27:27 UTC) #2
ananta
On 2011/04/04 16:27:27, brettw wrote: > I'd prefer to have John take a look at ...
9 years, 8 months ago (2011-04-04 18:40:58 UTC) #3
davidben
On 2011/04/04 18:40:58, ananta wrote: > I think it would be better if WebPluginProxy grabs ...
9 years, 8 months ago (2011-04-04 21:42:41 UTC) #4
ananta
On 2011/04/04 21:42:41, David Benjamin wrote: > On 2011/04/04 18:40:58, ananta wrote: > > I ...
9 years, 8 months ago (2011-04-04 22:21:38 UTC) #5
davidben
Updated with the appropriate releases in the destructor. (Sorry that took a while. Got a ...
9 years, 7 months ago (2011-05-06 22:00:04 UTC) #6
ananta
LGTM
9 years, 7 months ago (2011-05-06 22:06:50 UTC) #7
davidben
jam: Have you had a chance to look at this? I think I need a ...
9 years, 7 months ago (2011-05-13 17:35:55 UTC) #8
commit-bot: I haz the power
Try job failure for 6693052-9001 on linux for step net_unittests: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux&number=31606
9 years, 6 months ago (2011-06-11 07:18:20 UTC) #9
commit-bot: I haz the power
9 years, 6 months ago (2011-06-12 00:04:13 UTC) #10
Change committed as 88773

Powered by Google App Engine
This is Rietveld 408576698