Bug 692109 - The intended crash in nsIFrame::GetOffsetToCrossDoc won't actually crash with some compilers; r=tn

--HG--
extra : rebase_source : 47ddd0eb634c25ff84a49ea9a0a856e0a3ffbec8
This commit is contained in:
Ehsan Akhgari 2011-10-05 19:55:02 -04:00
parent d32edc7414
commit 3b04b925ec

View File

@ -4074,7 +4074,8 @@ nsIFrame::GetOffsetToCrossDoc(const nsIFrame* aOther, const PRInt32 aAPD) const
if (PresContext()->GetRootPresContext() !=
aOther->PresContext()->GetRootPresContext()) {
// crash right away, we are almost certainly going to crash anyway.
*(static_cast<PRInt32*>(nsnull)) = 3;
NS_RUNTIMEABORT("trying to get the offset between frames in different "
"document hierarchies?");
}
const nsIFrame* root = nsnull;