Bug 487345, Crash [@ nsObjectLoadingContent::Instantiate], r+sr=bz

This commit is contained in:
Olli Pettay 2009-04-08 18:28:52 +03:00
parent 614ee0fc2d
commit 68311f0ff6

View File

@ -134,7 +134,14 @@ nsAsyncInstantiateEvent::Run()
// Also make sure that we still refer to the same data.
nsIObjectFrame* frame = mContent->
GetExistingFrame(nsObjectLoadingContent::eFlushContent);
if (mFrame.IsAlive() &&
#ifdef DEBUG
if (frame && mFrame.IsAlive()) {
nsIFrame* objectFrame = do_QueryFrame(frame);
NS_ASSERTION(objectFrame == mFrame.GetFrame(), "Wrong frame!");
}
#endif
if (frame &&
mFrame.IsAlive() &&
mContent->mURI == mURI &&
mContent->mContentType.Equals(mContentType)) {
if (LOG_ENABLED()) {