Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 11046002: Browser Plugin: Fixed browser process crash on embedder reload. (Closed)

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

Description

Browser Plugin: Fixed browser process crash on embedder reload. The browser process crashed because a CHECK that verifies that an existing browser_plugin_embedder_ does not yet exist fails. This happens because CreateGuest should only be handled in WebContentsImpl on the first call to CreateGuest. On all subsequent calls, CreateGuest should be handled in BrowserPluginEmbedderHelper. This patch makes this change. I've also cleaned up some dead code. I've also written a test that verifies that reloading the embedder doesn't cause the browser plugin to misbehave. BUG=153561 Test=BrowserPluginHostTest.ReloadEmbedder Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159854

Patch Set 1 #

Patch Set 2 : Alternative behavior to match Istiaque's previous implementation of NavigateGuest #

Total comments: 6

Patch Set 3 : Fixed nits #

Patch Set 4 : Fixed a missed nit. #

Total comments: 6

Patch Set 5 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -15 lines) Patch
M content/browser/browser_plugin/browser_plugin_embedder_helper.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder_helper.cc View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 2 chunks +6 lines, -11 lines 0 comments Download
M content/test/data/browser_plugin_embedder.html View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Fady Samuel
Hi Istiaque, Could you please take a quick look before I get Charlie to OWNER ...
8 years, 2 months ago (2012-10-02 18:27:04 UTC) #1
Fady Samuel
PTAL. Made it behave the same as before as per our offline conversation.
8 years, 2 months ago (2012-10-02 18:39:01 UTC) #2
lazyboy
lgtm Thanks for fixing, some comments for the test. https://codereview.chromium.org/11046002/diff/1001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): https://codereview.chromium.org/11046002/diff/1001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode836 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:836: ...
8 years, 2 months ago (2012-10-02 18:48:33 UTC) #3
Fady Samuel
Fixed nits. +creis for OWNER review. Thanks. https://codereview.chromium.org/11046002/diff/1001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): https://codereview.chromium.org/11046002/diff/1001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode836 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:836: // Change ...
8 years, 2 months ago (2012-10-02 19:39:46 UTC) #4
Fady Samuel
http://codereview.chromium.org/11046002/diff/1001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): http://codereview.chromium.org/11046002/diff/1001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode871 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:871: On 2012/10/02 18:48:33, lazyboy wrote: > nit: remove whitespaces. ...
8 years, 2 months ago (2012-10-02 20:00:06 UTC) #5
Charlie Reis
LGTM, with a few comments. http://codereview.chromium.org/11046002/diff/5004/content/browser/browser_plugin/browser_plugin_embedder_helper.cc File content/browser/browser_plugin/browser_plugin_embedder_helper.cc (right): http://codereview.chromium.org/11046002/diff/5004/content/browser/browser_plugin/browser_plugin_embedder_helper.cc#newcode106 content/browser/browser_plugin/browser_plugin_embedder_helper.cc:106: embedder_->CreateGuest(render_view_host(), Can you add ...
8 years, 2 months ago (2012-10-02 23:22:18 UTC) #6
Fady Samuel
http://codereview.chromium.org/11046002/diff/5004/content/browser/browser_plugin/browser_plugin_embedder_helper.cc File content/browser/browser_plugin/browser_plugin_embedder_helper.cc (right): http://codereview.chromium.org/11046002/diff/5004/content/browser/browser_plugin/browser_plugin_embedder_helper.cc#newcode106 content/browser/browser_plugin/browser_plugin_embedder_helper.cc:106: embedder_->CreateGuest(render_view_host(), On 2012/10/02 23:22:18, creis wrote: > Can you ...
8 years, 2 months ago (2012-10-03 01:48:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11046002/11001
8 years, 2 months ago (2012-10-03 01:48:29 UTC) #8
commit-bot: I haz the power
8 years, 2 months ago (2012-10-03 06:04:10 UTC) #9
Change committed as 159854

Powered by Google App Engine
This is Rietveld 408576698