diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 85532de85b40..9479c591aad5 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -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(nsnull)) = 3; + NS_RUNTIMEABORT("trying to get the offset between frames in different " + "document hierarchies?"); } const nsIFrame* root = nsnull;