Bug 487345 - Crash [@ nsObjectLoadingContent::Instantiate] when enabling Flashblock after visiting this URL, p=Olli.Pettay@gmail.com, r=bzbarsky, a=ss

git-svn-id: svn://10.0.0.236/trunk@256857 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nrthomas%gmail.com
2009-04-09 00:00:16 +00:00
parent 0fd71f2e8c
commit 73efb72bbd

View File

@@ -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()) {