Bug 638369 - Update title when creating a new tab [r=wesj a=mfinkle]
☠☠ backed out by f57a75b80dca ☠ ☠
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 08 Mar 2011 12:44:15 -0800
changeset 2880 ee3ee8a6e83bb7b082c9ab211b67427c605e6109
parent 2879 dcbb11a046d6283e4d1331c0c9ebcf653aec09da
child 2881 052bbbee439b319edf4e48d07a1b7c1f637b9db4
push id2424
push usermbrubeck@mozilla.com
push dateTue, 08 Mar 2011 20:44:31 +0000
reviewerswesj, mfinkle
bugs638369
Bug 638369 - Update title when creating a new tab [r=wesj a=mfinkle]
chrome/content/browser.js
--- a/chrome/content/browser.js
+++ b/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;