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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user