Bug 1697886 - PresShell::GetPrimaryContentDocument shouldn't trigger about:blank creation. r=smaug

It's called during painting, so that'd be bad. This trivially happens
with e10s disabled.

Differential Revision: https://phabricator.services.mozilla.com/D108077
This commit is contained in:
Emilio Cobos Álvarez committed 2021-03-11 20:56:41 +00:00
1 parent b2e70ed01b
commit 1312466379
1 file changed
+1 -1
+1 -1
View File
@@ -8067,7 +8067,7 @@ Document* PresShell::GetPrimaryContentDocument() {
return nullptr;
}
return childDocShell->GetDocument();
return childDocShell->GetExtantDocument();
}
#ifdef DEBUG