Bug 788252 - Cleanup frame loader when aborting a recursive load in object/embed tags. r=josh

This commit is contained in:
John Schoenick 2012-10-05 15:30:13 -07:00
parent 2e974374ef
commit eaa4bc25cb

View File

@ -1763,6 +1763,9 @@ nsObjectLoadingContent::LoadObject(bool aNotify,
rv = mFrameLoader->CheckForRecursiveLoad(mURI);
if (NS_FAILED(rv)) {
LOG(("OBJLC [%p]: Aborting recursive load", this));
mFrameLoader->Destroy();
mFrameLoader = nullptr;
mType = eType_Null;
break;
}