From 9aefd82c9e2ea091884fbb1387757fb52969224d Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Tue, 12 Sep 2006 22:25:22 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20342432:=20After=20Undo=20Close=20Tab,=20c?= =?UTF-8?q?ontent=20area=20of=20newly-opened=20page=20isn't=20focused,=20p?= =?UTF-8?q?atch=20by=20Simon=20B=EF=BF=BDnzli=20,=20r=3D?= =?UTF-8?q?mano?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser/components/sessionstore/src/nsSessionStore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/components/sessionstore/src/nsSessionStore.js b/browser/components/sessionstore/src/nsSessionStore.js index 154de8f44444..5f5b94ce2e1b 100644 --- a/browser/components/sessionstore/src/nsSessionStore.js +++ b/browser/components/sessionstore/src/nsSessionStore.js @@ -680,6 +680,10 @@ SessionStoreService.prototype = { // restore tab content this.restoreHistoryPrecursor(aWindow, [closedTabState], 1, 0, 0); + + // focus the tab's content area + var content = browser.getBrowserForTab(closedTabState._tab).contentWindow; + aWindow.setTimeout(function() { content.focus(); }, 0); } else { Components.returnCode = Cr.NS_ERROR_INVALID_ARG;