mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
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:
parent
d32edc7414
commit
3b04b925ec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user