зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1276607
- Activate content frame when stopping RDM to restore focus. r=bigben
MozReview-Commit-ID: CgDxa0aaQwi --HG-- extra : rebase_source : 2c637372142e83641bf9977916097a38f7d57ba3
This commit is contained in:
Родитель
8bdb6331c6
Коммит
0ccf1ca369
|
@ -128,6 +128,11 @@ function swapToInnerBrowser({ tab, containerURL, getInnerBrowser }) {
|
|||
// `swapBrowsersAndCloseOther`.
|
||||
gBrowser.swapBrowsersAndCloseOther(tab, contentTab);
|
||||
gBrowser = null;
|
||||
|
||||
// The focus manager seems to get a little dizzy after all this swapping. If a
|
||||
// content element had been focused inside the viewport before stopping, it will
|
||||
// have lost focus. Activate the frame to restore expected focus.
|
||||
tab.linkedBrowser.frameLoader.activateRemoteFrame();
|
||||
},
|
||||
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче