зеркало из https://github.com/mozilla/gecko-dev.git
Bug 342698. Stack overflow when getting state of document. r=markp
This commit is contained in:
Родитель
b82f81345f
Коммит
cde78282e4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче