mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 739393 - Set new tabs created in the background to inactive [r=mfinkle, a=blocking-fennec]
This commit is contained in:
parent
8a99107167
commit
c7b9633d4b
@ -1553,6 +1553,9 @@ Tab.prototype = {
|
||||
this.setBrowserSize(kDefaultCSSViewportWidth, kDefaultCSSViewportHeight);
|
||||
BrowserApp.deck.appendChild(this.browser);
|
||||
|
||||
// Must be called after appendChild so the docshell has been created.
|
||||
this.setActive(false);
|
||||
|
||||
this.browser.stop();
|
||||
|
||||
let frameLoader = this.browser.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader;
|
||||
@ -1656,7 +1659,7 @@ Tab.prototype = {
|
||||
|
||||
// This should be called to update the browser when the tab gets selected/unselected
|
||||
setActive: function setActive(aActive) {
|
||||
if (!this.browser)
|
||||
if (!this.browser || !this.browser.docShell)
|
||||
return;
|
||||
|
||||
if (aActive) {
|
||||
|
Loading…
Reference in New Issue
Block a user