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

This commit is contained in:
aaronleventhal%moonset.net 2006-06-26 14:54:25 +00:00
Родитель b82f81345f
Коммит cde78282e4
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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;
}