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

Issue 10383059: Terminate plugins as well as runing onunload handlers during slow shutdown. (Closed)

Created:
8 years, 7 months ago by Tom Sepez
Modified:
8 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Terminate plugins as well as runing onunload handlers during slow shutdown. This implementation uses the existing OnDestruct method. This is called in a state where webkit is still intact, so any callbacks by the plugin should still function properly. BUG=https://code.google.com/p/flapper/issues/detail?id=120 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135901

Patch Set 1 #

Patch Set 2 : Terminate plugins as well as runing onunload handlers during slow shutdown. #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 1 chunk +10 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Tom Sepez
Brett, please review. Last piece of the LSO shutdown fix.
8 years, 7 months ago (2012-05-08 00:41:37 UTC) #1
brettw
I'm a little concerned about this. I'd like to understand a bit more about the ...
8 years, 7 months ago (2012-05-08 18:26:53 UTC) #2
Tom Sepez
Webkit does destroy the plugins when the page is being destroyed. But as part of ...
8 years, 7 months ago (2012-05-08 19:03:04 UTC) #3
Tom Sepez
Note: by "and exits", I mean it terminates its main loop without doing any further ...
8 years, 7 months ago (2012-05-08 19:05:02 UTC) #4
Tom Sepez
Note: returning false as suggested above keeps the renderer alive without further shutdown steps - ...
8 years, 7 months ago (2012-05-08 19:25:42 UTC) #5
Tom Sepez
Convinced webkit is still intact, so the initial approach should be acceptable. Also, do not ...
8 years, 7 months ago (2012-05-08 20:00:30 UTC) #6
brettw
Can you add a comment in PluginInstance::Delete as well about the two types of deletion?
8 years, 7 months ago (2012-05-08 20:03:11 UTC) #7
Tom Sepez
Done.
8 years, 7 months ago (2012-05-08 20:14:50 UTC) #8
brettw
8 years, 7 months ago (2012-05-08 20:37:03 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698