Bug 1559523 - Fix a crash in Thunderbird, [@ mozilla::dom::Document::EndLoad]. r=kaie

This commit is contained in:
Olli Pettay 2019-07-05 14:54:53 +02:00
parent 726678d4e7
commit 97ef8e2325

View File

@ -11192,7 +11192,7 @@ void Document::SetReadyStateInternal(ReadyState rs,
// At the time of loading start, we don't have timing object, record time.
if (READYSTATE_INTERACTIVE == rs) {
if (nsContentUtils::IsSystemPrincipal(NodePrincipal())) {
if (!mXULPersist && nsContentUtils::IsSystemPrincipal(NodePrincipal())) {
mXULPersist = new XULPersist(this);
mXULPersist->Init();
}