Bug 342698. Stack overflow when getting state of document. r=markp

git-svn-id: svn://10.0.0.236/trunk@200864 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net
2006-06-26 14:54:25 +00:00
parent 2467255d90
commit 9bdc4150fe

View File

@@ -216,10 +216,8 @@ NS_IMETHODIMP nsDocAccessible::GetState(PRUint32 *aState)
*aState |= STATE_INVISIBLE;
}
PRUint32 extState;
GetExtState(&extState);
if (0 == (extState & EXT_STATE_EDITABLE)) {
// Use STATE_READONLY when we're not in an editor pane
nsCOMPtr<nsIEditor> editor = GetEditor();
if (!editor) {
*aState |= STATE_READONLY;
}