bug 489988 - Java Applets reload when print is called, r+sr=roc

This commit is contained in:
Olli Pettay 2009-04-25 02:46:16 +03:00
parent 9e8ec752cb
commit b6ef8520f2

View File

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