Bug 342432: After Undo Close Tab, content area of newly-opened page isn't focused, patch by Simon Bünzli <zeniko@gmail.com>, r=mano

git-svn-id: svn://10.0.0.236/trunk@209908 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2006-09-12 22:25:22 +00:00
parent 39b94cbb2d
commit 94498bca40

View File

@ -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;