зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
0416c56105
Коммит
9aefd82c9e
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче