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:
J. Ryan Stinnett 2016-08-11 18:26:56 -05:00
Родитель 8bdb6331c6
Коммит 0ccf1ca369
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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();
},
};