mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 1095717 - Bail out when creating the next preload browser in case the HostFrame was destroyed shortly before r=jaws
This commit is contained in:
parent
39b182a5d8
commit
6508a3064e
@ -300,6 +300,12 @@ HiddenBrowser.prototype = {
|
||||
this._applySize();
|
||||
doc.getElementById("win").appendChild(this._browser);
|
||||
|
||||
// The browser might not have a docShell here if the HostFrame was
|
||||
// destroyed while the promise was resolved. Simply bail out.
|
||||
if (!this._browser.docShell) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Let the docShell be inactive so that document.hidden=true.
|
||||
this._browser.docShell.isActive = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user