summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 15:35:38 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 15:35:38 +0000
commit152e959a87d64e4f859ad9a029516c494e015d2e (patch)
treeff7a8bf3e418cbb2d6e10d4827619ae9d76fa3ff
parent00a5ab6d8d6ac2deb35b7c843aab7497de029753 (diff)
downloadchromium_src-152e959a87d64e4f859ad9a029516c494e015d2e.zip
chromium_src-152e959a87d64e4f859ad9a029516c494e015d2e.tar.gz
chromium_src-152e959a87d64e4f859ad9a029516c494e015d2e.tar.bz2
I don't know how it could happen, but according to this bug it's
possible for a phantom tab to show the crashed icons. This should make it so that can never happen. BUG=40118 TEST=none Review URL: http://codereview.chromium.org/2035008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46816 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/views/tabs/tab_renderer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/views/tabs/tab_renderer.cc b/chrome/browser/views/tabs/tab_renderer.cc
index a6404bb..e717809 100644
--- a/chrome/browser/views/tabs/tab_renderer.cc
+++ b/chrome/browser/views/tabs/tab_renderer.cc
@@ -336,6 +336,8 @@ void TabRenderer::UpdateData(TabContents* contents,
else
data_.favicon = contents->GetFavIcon();
data_.phantom = phantom;
+ if (phantom)
+ data_.crashed = false; // Phantom tabs can never crash.
// Sets the accessible name for the tab.
SetAccessibleName(UTF16ToWide(data_.title));