Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: chrome/browser/browser.cc

Issue 100033: Synchronously update the loading state when a load starts so that the UI will... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
===================================================================
--- chrome/browser/browser.cc (revision 14707)
+++ chrome/browser/browser.cc (working copy)
@@ -1737,10 +1737,13 @@
if (GetStatusBubble())
GetStatusBubble()->Hide();
- // Update the location bar and load state. These are both synchronous
- // updates inside of ScheduleUIUpdate.
- ScheduleUIUpdate(current_tab, TabContents::INVALIDATE_URL |
- TabContents::INVALIDATE_LOAD);
+ // Update the location bar. This is synchronous. We specfically don't update
+ // the load state since the load hasn't started yet and updating it will put
+ // it out of sync with the actual state like whether we're displaying a
+ // favicon, which controls the throbber. If we updated it here, the throbber
+ // will show the default favicon for a split second when navigating away
+ // from the new tab page.
+ ScheduleUIUpdate(current_tab, TabContents::INVALIDATE_URL);
} else if (disposition == OFF_THE_RECORD) {
OpenURLOffTheRecord(profile_, url);
return;
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698