mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 1079141 - mDocument null check in nsScriptLoader::ReadyToExecuteScripts. r=bz
This commit is contained in:
parent
b2c98e2471
commit
aec34304ac
@ -1248,7 +1248,7 @@ nsScriptLoader::ReadyToExecuteScripts()
|
||||
}
|
||||
}
|
||||
|
||||
if (!mDocument->IsMasterDocument()) {
|
||||
if (mDocument && !mDocument->IsMasterDocument()) {
|
||||
nsRefPtr<ImportManager> im = mDocument->ImportManager();
|
||||
nsRefPtr<ImportLoader> loader = im->Find(mDocument);
|
||||
MOZ_ASSERT(loader, "How can we have an import document without a loader?");
|
||||
|
Loading…
x
Reference in New Issue
Block a user