зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
39b182a5d8
Коммит
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче