Bug 638369 - Update title when creating a new tab [r=wesj a=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 08 Mar 2011 12:44:15 -0800
changeset 67481 4e328fade26174302dd3ed6a3c434ee0732f990e
parent 67480 07e12e7675e2f8ea0d04638cc91b3bbd29ca1a73
child 67482 6c948b73221a95014627a784b09d55973e6cc933
push id19389
push userffxbld
push dateWed, 06 Apr 2011 21:33:21 +0000
treeherdermozilla-central@8e9f90073a20 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj, mfinkle
bugs638369
Bug 638369 - Update title when creating a new tab [r=wesj a=mfinkle]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -657,16 +657,19 @@ var Browser = {
       this.selectedTab = newTab;
 
     let getAttention = ("getAttention" in params ? params.getAttention : !aBringFront);
     let event = document.createEvent("UIEvents");
     event.initUIEvent("TabOpen", true, false, window, getAttention);
     newTab.chromeTab.dispatchEvent(event);
     newTab.browser.messageManager.sendAsyncMessage("Browser:TabOpen");
 
+    // Display the URL in the titlebar while the page starts loading.
+    BrowserUI._titleChanged(newTab.browser);
+
     return newTab;
   },
 
   closeTab: function closeTab(aTab, aOptions) {
     let tab = aTab instanceof XULElement ? this.getTabFromChrome(aTab) : aTab;
     if (!tab || !this._getNextTab(tab))
       return;