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

Issue 10014013: Add a hang monitor for Pepper plugins (Closed)

Created:
8 years, 8 months ago by brettw
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, brettw-cc_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

This adds a hang monitor for Pepper plugins. It monitors sync messages on the I/O thread of the renderer and sends a message to the browser if it's blocked for too long. The browser will show an infobar allowing you to terminate the plugin. BUG=122795 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132245

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : Fix leak #

Total comments: 16

Patch Set 5 : Review comments #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+838 lines, -59 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/memory_details.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -14 lines 0 comments Download
A chrome/browser/ui/hung_plugin_tab_helper.h View 1 2 3 4 5 1 chunk +108 lines, -0 lines 0 comments Download
A chrome/browser/ui/hung_plugin_tab_helper.cc View 1 2 3 4 5 1 chunk +268 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/plugin_service_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -2 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -5 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 3 chunks +26 lines, -10 lines 0 comments Download
M content/content_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/plugin_service.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_hung_plugin_filter.h View 1 2 3 4 5 6 7 1 chunk +109 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_hung_plugin_filter.cc View 1 2 3 1 chunk +153 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -4 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/host_dispatcher.h View 3 chunks +25 lines, -2 lines 0 comments Download
M ppapi/proxy/host_dispatcher.cc View 3 chunks +11 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 2 3 4 5 6 4 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
brettw
http://codereview.chromium.org/10014013/diff/4001/content/common/view_messages.h File content/common/view_messages.h (right): http://codereview.chromium.org/10014013/diff/4001/content/common/view_messages.h#newcode1179 content/common/view_messages.h:1179: // Enable or disable inverting of web content pixels, ...
8 years, 8 months ago (2012-04-10 18:07:56 UTC) #1
brettw
Ben: owners review for browser/ui
8 years, 8 months ago (2012-04-10 19:52:34 UTC) #2
Ben Goodger (Google)
LGTM for ui
8 years, 8 months ago (2012-04-10 19:58:42 UTC) #3
brettw
substituting Yuzhu for Trung who already has a patch out from me.
8 years, 8 months ago (2012-04-10 19:59:19 UTC) #4
yzshen1
Hi, Brett. Only some nits. Thanks! http://codereview.chromium.org/10014013/diff/6002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10014013/diff/6002/chrome/app/generated_resources.grd#newcode6114 chrome/app/generated_resources.grd:6114: + A plug-in ...
8 years, 8 months ago (2012-04-11 18:30:46 UTC) #5
brettw
Thanks, I should have fixed everything. http://codereview.chromium.org/10014013/diff/6002/chrome/browser/ui/hung_plugin_tab_helper.cc File chrome/browser/ui/hung_plugin_tab_helper.cc (right): http://codereview.chromium.org/10014013/diff/6002/chrome/browser/ui/hung_plugin_tab_helper.cc#newcode43 chrome/browser/ui/hung_plugin_tab_helper.cc:43: // TODO(brettw) it ...
8 years, 8 months ago (2012-04-11 19:56:08 UTC) #6
yzshen1
LGTM with two more nits. http://codereview.chromium.org/10014013/diff/6002/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): http://codereview.chromium.org/10014013/diff/6002/content/public/browser/web_contents_delegate.h#newcode380 content/public/browser/web_contents_delegate.h:380: // for anything in ...
8 years, 8 months ago (2012-04-11 20:08:09 UTC) #7
brettw
http://codereview.chromium.org/10014013/diff/6002/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): http://codereview.chromium.org/10014013/diff/6002/content/public/browser/web_contents_delegate.h#newcode380 content/public/browser/web_contents_delegate.h:380: // for anything in case there's an exploited renderer. ...
8 years, 8 months ago (2012-04-11 20:30:25 UTC) #8
brettw
Actually uploaded the patch now.
8 years, 8 months ago (2012-04-11 20:43:14 UTC) #9
yzshen1
lgtm
8 years, 8 months ago (2012-04-11 20:45:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/10014013/11009
8 years, 8 months ago (2012-04-12 18:24:57 UTC) #11
commit-bot: I haz the power
8 years, 8 months ago (2012-04-12 21:52:24 UTC) #12
Try job failure for 10014013-11009 (retry) on win_rel for step "browser_tests".
It's a second try, previously, step "browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698