mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 623624 - Content elements don't get focus when the focus method is set on them [r=mfinkle]
This commit is contained in:
parent
0c0f768648
commit
62c3b41c0e
@ -2746,8 +2746,13 @@ Tab.prototype = {
|
||||
Elements.browsers.selectedPanel = notification;
|
||||
browser.active = true;
|
||||
document.getElementById("tabs").selectedTab = this._chromeTab;
|
||||
}
|
||||
else {
|
||||
|
||||
// Ensure that the content process has gets an activate event
|
||||
try {
|
||||
let fl = browser.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader;
|
||||
fl.activateRemoteFrame();
|
||||
} catch (e) {}
|
||||
} else {
|
||||
browser.messageManager.sendAsyncMessage("Browser:Blur", { });
|
||||
browser.setAttribute("type", "content");
|
||||
browser.active = false;
|
||||
|
Loading…
Reference in New Issue
Block a user