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:
parent
39b94cbb2d
commit
94498bca40
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user