mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
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:
parent
8bdb6331c6
commit
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();
|
||||
},
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user