Bug 587960. Don't run tree view code when the document is a zombie. r=bzbarsky a=roc

This commit is contained in:
Timothy Nikkel 2010-10-09 14:09:22 -05:00
parent ce930f4482
commit ede56de270

View File

@ -2527,7 +2527,10 @@ NS_IMETHODIMP
nsTreeBodyFrame::GetCursor(const nsPoint& aPoint,
nsIFrame::Cursor& aCursor)
{
if (mView) {
// Check the GetScriptHandlingObject so we don't end up running code when
// the document is a zombie.
PRBool dummy;
if (mView && GetContent()->GetCurrentDoc()->GetScriptHandlingObject(dummy)) {
PRInt32 row;
nsTreeColumn* col;
nsIAtom* child;