DescriptionBrowser 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 #
Messages
Total messages: 9 (0 generated)
|