Bug 719868 - Progress throbber still shows when we load about:home on startup. r=mfinkle
☠☠ backed out by 687b80084d3d ☠ ☠
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Thu, 26 Jan 2012 15:07:38 -0800
changeset 86822 7b3a4af0e68a1dd62d178d32cefeea3165ac071f
parent 86821 b07da7be62c2a89c8af4a839a27500744c350020
child 86823 b4decc9b812fa0a133681b4bc8a54b29c5dc54ed
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs719868
milestone12.0a1
Bug 719868 - Progress throbber still shows when we load about:home on startup. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -302,26 +302,26 @@ var BrowserApp = {
         // Let the session make a restored tab active
         restoreToFront = true;
 
         // Be ready to handle any restore failures by making sure we have a valid tab opened
         let restoreCleanup = {
           observe: function(aSubject, aTopic, aData) {
             Services.obs.removeObserver(restoreCleanup, "sessionstore-windows-restored");
             if (aData == "fail")
-              BrowserApp.addTab("about:home");
+              BrowserApp.addTab("about:home", { showProgress: false });
           }
         };
         Services.obs.addObserver(restoreCleanup, "sessionstore-windows-restored", false);
       }
 
       // Start the restore
       ss.restoreLastSession(restoreToFront);
     } else {
-      this.addTab(url);
+      this.addTab(url, { showProgress: url != "about:home" });
 
       // show telemetry door hanger if we aren't restoring a session
       this._showTelemetryPrompt();
     }
 
     // notify java that gecko has loaded
     sendMessageToJava({
       gecko: {