diff --git a/accessible/src/base/nsDocAccessible.cpp b/accessible/src/base/nsDocAccessible.cpp index d27e6d526524..5aff9091180c 100644 --- a/accessible/src/base/nsDocAccessible.cpp +++ b/accessible/src/base/nsDocAccessible.cpp @@ -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 editor = GetEditor(); + if (!editor) { *aState |= STATE_READONLY; }