mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 01:59:29 +00:00
Bug 850571 - Abort if the view is still owned by a frame in Destroy(). r=roc
This commit is contained in:
parent
fa54d8c866
commit
3b8a88cbe1
@ -132,6 +132,14 @@ nsView* nsView::GetViewFor(nsIWidget* aWidget)
|
||||
|
||||
void nsView::Destroy()
|
||||
{
|
||||
#if 1 // XXXmats temporary investigation of bug 850571
|
||||
if (mFrame) {
|
||||
if (uintptr_t(mFrame) == mozPoisonValue()) {
|
||||
NS_RUNTIMEABORT("bug 850571: poisoned frame");
|
||||
}
|
||||
NS_RUNTIMEABORT("bug 850571: have frame");
|
||||
}
|
||||
#endif
|
||||
this->~nsView();
|
||||
mozWritePoison(this, sizeof(*this));
|
||||
nsView::operator delete(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user