Bug 723349 - Fix params in addTab on session restore failure. r=mfinkle a=akeybl
authorBrian Nicholson <bnicholson@mozilla.com>
Wed, 01 Feb 2012 17:51:41 -0800
changeset 88349 fefd5adb4134563c72f94c891f557c2989fe7b65
parent 88348 0eac67dba10fdf213b0980adb2a62a602575e9bb
child 88350 ed47bdb3676245a7ee9c763ad98f2d4a3a7b4489
push idunknown
push userunknown
push dateunknown
reviewersmfinkle, akeybl
bugs723349
milestone12.0a2
Bug 723349 - Fix params in addTab on session restore failure. r=mfinkle a=akeybl
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -306,18 +306,20 @@ var BrowserApp = {
         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") {
-            let params = { selected: restoreToFront };
-            BrowserApp.addTab("about:home", { showProgress: false });
+            BrowserApp.addTab("about:home", {
+              showProgress: false,
+              selected: restoreToFront
+            });
           }
 
           sendMessageToJava({
             gecko: {
               type: "Session:RestoreEnd"
             }
           });
         }