Fix a bug where a tab closed immediately after a navigate fails to close.
commit678f0985d33509005896c813b7a4cc0a964a7a84
authorsammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 1 Oct 2013 12:47:54 +0000 (1 12:47 +0000)
committersammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 1 Oct 2013 12:47:54 +0000 (1 12:47 +0000)
tree5e553ba360d7284a5e2e153c465607bd826a6c2f
parentdc6ea3a8971d4772c6ccf41e357c238b47b49468
Fix a bug where a tab closed immediately after a navigate fails to close.

The bug occurs when the navigation requires a new RVH and the navigation
completes in the new renderer before the old renderer finishes closing
the page. In this case the browser process swaps out the old renderer
and the close is dropped on the floor.

This fixes the bug by terminating the new RVH when closing the tab.

BUG=294697

Review URL: https://codereview.chromium.org/24977003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226209 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/web_contents/render_view_host_manager.cc
content/browser/web_contents/render_view_host_manager_unittest.cc