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

Issue 11820009: Distinguish plugin disconnections from plugin crashes. (Closed)

Created:
7 years, 11 months ago by yzshen1
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, jochen+watch_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Distinguish plugin disconnections from plugin crashes. If the channel between a renderer and a plugin encounters an error, currently we display an infobar saying "<plugin_name> has crashed.". This may cause confusion, because the plugin process may still be alive and no crash dump is generated in that case. With this CL, we display a different prompt if the plugin process is still alive: "<plugin_name> has encountered an error." This CL only affects Windows. TEST=None BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176060

Patch Set 1 #

Total comments: 3

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Add more comments about the possibility that the ID has been reused. #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -26 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/plugins/plugin_observer.cc View 1 2 3 2 chunks +42 lines, -3 lines 0 comments Download
M chrome/browser/ui/hung_plugin_tab_helper.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/hung_plugin_tab_helper.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 1 chunk +8 lines, -4 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 4 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/webkit_test_controller.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/webkit_test_controller.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
yzshen1
Hi, reviewers. Would you please take a look? Thanks! Jeff: please look at generated_resources.grd. Justin: ...
7 years, 11 months ago (2013-01-09 00:25:10 UTC) #1
jschuh
https://codereview.chromium.org/11820009/diff/1/chrome/browser/plugins/plugin_observer.cc File chrome/browser/plugins/plugin_observer.cc (right): https://codereview.chromium.org/11820009/diff/1/chrome/browser/plugins/plugin_observer.cc#newcode201 chrome/browser/plugins/plugin_observer.cc:201: is_running = base::GetTerminationStatus(plugin_handle, NULL) == This will work only ...
7 years, 11 months ago (2013-01-09 00:36:17 UTC) #2
jeffreyc
So that we don't cause any users to mistakenly think the word "connection" means something ...
7 years, 11 months ago (2013-01-09 00:41:44 UTC) #3
yzshen1
https://codereview.chromium.org/11820009/diff/1/chrome/browser/plugins/plugin_observer.cc File chrome/browser/plugins/plugin_observer.cc (right): https://codereview.chromium.org/11820009/diff/1/chrome/browser/plugins/plugin_observer.cc#newcode201 chrome/browser/plugins/plugin_observer.cc:201: is_running = base::GetTerminationStatus(plugin_handle, NULL) == On 2013/01/09 00:36:17, Justin ...
7 years, 11 months ago (2013-01-09 00:45:49 UTC) #4
yzshen1
Good point. Thanks! Fixed. On 2013/01/09 00:41:44, jeffreyc wrote: > So that we don't cause ...
7 years, 11 months ago (2013-01-09 01:21:29 UTC) #5
jschuh
Lgtm on the security side. I'll let someone else weigh in on if the termination ...
7 years, 11 months ago (2013-01-09 01:29:16 UTC) #6
yzshen1
Thanks, Justin. I have added more comments about the possibility of pid being reused. On ...
7 years, 11 months ago (2013-01-09 06:17:56 UTC) #7
jochen (gone - plz use gerrit)
https://codereview.chromium.org/11820009/diff/14005/content/shell/webkit_test_controller.cc File content/shell/webkit_test_controller.cc (right): https://codereview.chromium.org/11820009/diff/14005/content/shell/webkit_test_controller.cc#newcode263 content/shell/webkit_test_controller.cc:263: printer_->AddErrorMessage("#CRASHED - plugin"); can you change the message to ...
7 years, 11 months ago (2013-01-09 08:29:12 UTC) #8
yzshen1
https://codereview.chromium.org/11820009/diff/14005/content/shell/webkit_test_controller.cc File content/shell/webkit_test_controller.cc (right): https://codereview.chromium.org/11820009/diff/14005/content/shell/webkit_test_controller.cc#newcode263 content/shell/webkit_test_controller.cc:263: printer_->AddErrorMessage("#CRASHED - plugin"); On 2013/01/09 08:29:12, jochen wrote: > ...
7 years, 11 months ago (2013-01-09 18:48:11 UTC) #9
jochen (gone - plz use gerrit)
content/shell lgtm
7 years, 11 months ago (2013-01-09 18:49:48 UTC) #10
brettw
lgtm
7 years, 11 months ago (2013-01-09 19:06:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11820009/6005
7 years, 11 months ago (2013-01-09 21:06:19 UTC) #12
commit-bot: I haz the power
Failed to apply patch for content/shell/webkit_test_controller.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-09 21:06:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11820009/5019
7 years, 11 months ago (2013-01-09 21:43:00 UTC) #14
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests
7 years, 11 months ago (2013-01-10 02:47:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11820009/5019
7 years, 11 months ago (2013-01-10 06:24:20 UTC) #16
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 14:06:44 UTC) #17
Message was sent while issue was closed.
Change committed as 176060

Powered by Google App Engine
This is Rietveld 408576698