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

Issue 11086025: Browser Plugin: Fix Events (Closed)

Created:
8 years, 2 months ago by Fady Samuel
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Browser Plugin: Fix Events This is a set of short-term fixes for BrowserPlugin events to address abarth@'s concerns. 1. Use frame's v8 context instead of creating a new one. 2. Use v8::Local<v8::Object> type for local handle to event objects. 3. Copy listener event listener vector before executing listeners to avoid referencing member variables in case one of the listeners deallocates the BrowserPlugin. A longer term fix will involve exposing CustomEvent to the WebKit API and constructing WebCustomEvents in browser_plugin.cc. BUG=155044 TEST=BrowserPluginHostTest.*, BrowserPluginTest.* pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161123

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed abarth@'s comments #

Total comments: 8

Patch Set 3 : Addressed abarth@'s commented #

Total comments: 3

Patch Set 4 : Added TODOs #

Patch Set 5 : Added missing TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -78 lines) Patch
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 chunks +88 lines, -78 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Fady Samuel
8 years, 2 months ago (2012-10-09 18:24:17 UTC) #1
abarth-chromium
This is a big improvement. Below are some comments we might want to address before ...
8 years, 2 months ago (2012-10-09 18:38:17 UTC) #2
Fady Samuel
http://codereview.chromium.org/11086025/diff/1/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): http://codereview.chromium.org/11086025/diff/1/content/renderer/browser_plugin/browser_plugin.cc#newcode335 content/renderer/browser_plugin/browser_plugin.cc:335: frame->callFunctionEvenIfScriptDisabled(*it, On 2012/10/09 18:38:18, abarth wrote: > How do ...
8 years, 2 months ago (2012-10-09 20:25:11 UTC) #3
abarth-chromium
LGTM. This patch is a vast improvement. Thank you so much. http://codereview.chromium.org/11086025/diff/5001/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): ...
8 years, 2 months ago (2012-10-09 20:30:00 UTC) #4
Fady Samuel
http://codereview.chromium.org/11086025/diff/5001/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): http://codereview.chromium.org/11086025/diff/5001/content/renderer/browser_plugin/browser_plugin.cc#newcode335 content/renderer/browser_plugin/browser_plugin.cc:335: if (plugin.document().frame()) { On 2012/10/09 20:30:00, abarth wrote: > ...
8 years, 2 months ago (2012-10-09 21:35:21 UTC) #5
Fady Samuel
Hi Charlie, Could you please take a look at this as OWNER? Thanks, Fady
8 years, 2 months ago (2012-10-09 22:45:25 UTC) #6
Charlie Reis
Great, I'm glad we're improving this. Thanks for your help, Adam! Just a few comments. ...
8 years, 2 months ago (2012-10-10 00:05:09 UTC) #7
abarth-chromium
> nit: It looks like you never use plugin directly, just > plugin.document().frame(). Why not ...
8 years, 2 months ago (2012-10-10 00:21:40 UTC) #8
Fady Samuel
> Yes. There are still bugs in this patch in that case. For example, although ...
8 years, 2 months ago (2012-10-10 00:25:12 UTC) #9
abarth-chromium
> Hmm, when we make a copy of the array are we not also calling ...
8 years, 2 months ago (2012-10-10 00:32:02 UTC) #10
Charlie Reis
http://codereview.chromium.org/11086025/diff/2003/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): http://codereview.chromium.org/11086025/diff/2003/content/renderer/browser_plugin/browser_plugin.cc#newcode336 content/renderer/browser_plugin/browser_plugin.cc:336: if (frame) Ok, I missed the fact that document()'s ...
8 years, 2 months ago (2012-10-10 02:46:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11086025/12002
8 years, 2 months ago (2012-10-10 14:24:07 UTC) #12
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years, 2 months ago (2012-10-10 16:24:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11086025/12002
8 years, 2 months ago (2012-10-10 16:33:38 UTC) #14
commit-bot: I haz the power
8 years, 2 months ago (2012-10-10 16:33:49 UTC) #15
Change committed as 161123

Powered by Google App Engine
This is Rietveld 408576698