Bug 453831 - Focus in limbo after multi-tab launch pref set. r=dietrich
authorSimon Bünzli <zeniko@gmail.com>
Sat, 06 Sep 2008 05:27:49 +0200
changeset 18878 b96ac5d9119adecb3c79dee25e77cc03646c1e94
parent 18877 534edf352f6bdd2d010ade29d50a289ec9a7bdea
child 18879 172a08c1ce8e18537a4669d8803cc2b68cc24ab9
push id1788
push userdgottwald@mozilla.com
push dateSat, 06 Sep 2008 03:28:44 +0000
treeherdermozilla-central@b96ac5d9119a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdietrich
bugs453831
milestone1.9.1b1pre
Bug 453831 - Focus in limbo after multi-tab launch pref set. r=dietrich
browser/components/sessionstore/src/nsSessionStore.js
--- a/browser/components/sessionstore/src/nsSessionStore.js
+++ b/browser/components/sessionstore/src/nsSessionStore.js
@@ -1856,17 +1856,17 @@ SessionStoreService.prototype = {
     }
     var sidebar = aWindow.document.getElementById("sidebar-box");
     if (sidebar.getAttribute("sidebarcommand") != aSidebar) {
       aWindow.toggleSidebar(aSidebar);
     }
     // since resizing/moving a window brings it to the foreground,
     // we might want to re-focus the last focused window
     if (this.windowToFocus) {
-      this.windowToFocus.focus();
+      this.windowToFocus.content.focus();
     }
   },
 
   /**
    * Restores cookies (accepting both Firefox 2.0 and current format)
    * @param aCookies
    *        Array of cookie objects
    */