diff --git a/mozilla/content/base/src/nsObjectLoadingContent.cpp b/mozilla/content/base/src/nsObjectLoadingContent.cpp index bdfc26bd436..296bbf3f30e 100644 --- a/mozilla/content/base/src/nsObjectLoadingContent.cpp +++ b/mozilla/content/base/src/nsObjectLoadingContent.cpp @@ -134,7 +134,15 @@ 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 = nsnull; + CallQueryInterface(frame, &objectFrame); + NS_ASSERTION(objectFrame == mFrame.GetFrame(), "Wrong frame!"); + } +#endif + if (frame && + mFrame.IsAlive() && mContent->mURI == mURI && mContent->mContentType.Equals(mContentType)) { if (LOG_ENABLED()) {