diff options
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 8ba705f..df84333 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -897,6 +897,13 @@ void TabContents::OnStartDownload(DownloadItem* download) { if (tab_contents && tab_contents->delegate()) tab_contents->delegate()->OnStartDownload(download); + + // Update the URL display. + // If the download is caused by typing in a downloadable URL, e.g., + // http://example.com/somefile.zip, into the omnibox, the previous URL + // will reappear. + if (delegate()) + delegate()->NavigationStateChanged(this, TabContents::INVALIDATE_URL); } void TabContents::WillClose(ConstrainedWindow* window) { |