зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1160098
- XULElement::LoadSrc() should check whether we successfully created a new frameLoader before trying to call SetIsPrerendered() on it r=smaug
This commit is contained in:
Родитель
8433a30b6f
Коммит
f519f0182c
|
@ -1599,13 +1599,13 @@ nsXULElement::LoadSrc()
|
|||
// Usually xul elements are used in chrome, which doesn't have
|
||||
// session history at all.
|
||||
slots->mFrameLoader = nsFrameLoader::Create(this, false);
|
||||
NS_ENSURE_TRUE(slots->mFrameLoader, NS_OK);
|
||||
|
||||
if (AttrValueIs(kNameSpaceID_None, nsGkAtoms::prerendered,
|
||||
NS_LITERAL_STRING("true"), eIgnoreCase)) {
|
||||
nsresult rv = slots->mFrameLoader->SetIsPrerendered();
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
}
|
||||
|
||||
NS_ENSURE_TRUE(slots->mFrameLoader, NS_OK);
|
||||
}
|
||||
|
||||
return slots->mFrameLoader->LoadFrame();
|
||||
|
|
Загрузка…
Ссылка в новой задаче