NVDA should fall back to EditTextInfo if ITextDocumentTextInfo fails [Outlook 2010/2013 new profiles dialog] #4090

Closed
nvaccessAuto opened this Issue Apr 24, 2014 · 5 comments

1 participant

@nvaccessAuto

Reported by mdcurran on 2014-04-24 04:55
To support RichEdit windows, NVDA will use a TextInfo of ITextDocumentTextInfo if the richEdit api is 1 or higher, and if the window class ends in 'PT'. However, there are some cases, such as in the Outlook 2010 New Profile dialog where probably due to security restrictions, ITextDocument fails. We should in these cases fall back to using EditTextInfo instead. Therefore we must handle this in an implementation of makeTextInfo on the RichEdit NVDAObject.

@nvaccessAuto

Comment 1 by Michael Curran <mick@... on 2014-04-24 05:00
In [f66c054]:
```CommitTicketReference repository="" revision="f66c054e7f26f010144158e163f77fc8e9ab8b5b"
Merge branch 't4090' into next. Incubates #4090

Changes:
Added labels: incubating
@nvaccessAuto

Comment 2 by mdcurran on 2014-04-28 23:21
Changes:
Changed title from "NVDA should fall back to EditTextInfo if ITextDocumentTextInfo fails 2010 new profiles dialog" to "NVDA should fall back to EditTextInfo if ITextDocumentTextInfo fails 2010/2013 new profiles dialog"

@nvaccessAuto

Comment 3 by leonarddr on 2014-05-06 10:29
Seems this doesn't fix the issue i reported in #3832. I get the following error whenever i have to insert my password:
`
ERROR - scriptHandler.executeScript (12:23:55):
error executing script: > with gesture u'up arrow'
Traceback (most recent call last):
File "scriptHandler.pyc", line 174, in executeScript
File "editableText.pyc", line 103, in script_caret_moveByLine
File "editableText.pyc", line 100, in caretMovementScriptHelper
File "editableText.pyc", line 86, in caretScriptPostMovedHelper
File "speech.pyc", line 609, in speakTextInfo
File "NVDAObjects\window\edit.pyc", line 670, in getTextWithFields
File "NVDAObjects\window\edit.pyc", line 616, in _getTextAtRange
File "comtypes__init
.pyc", line 266, in getattr
COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
ERROR - eventHandler.executeEvent (12:23:55):
error executing event: caret on with extra args of {}
Traceback (most recent call last):
File "eventHandler.pyc", line 143, in executeEvent
File "eventHandler.pyc", line 91, in init
File "eventHandler.pyc", line 98, in next
File "NVDAObjects\IAccessible__init__.pyc", line 1279, in event_caret
File "NVDAObjects\window\edit.pyc", line 817, in event_caret
File "NVDAObjects\behaviors.pyc", line 164, in event_caret
File "editableText.pyc", line 206, in detectPossibleSelectionChange
File "speech.pyc", line 481, in speakSelectionChange
File "baseObject.pyc", line 21, in get
File "NVDAObjects\window\edit.pyc", line 740, in get_text
File "NVDAObjects\window\edit.pyc", line 616, in getTextAtRange
File "comtypes__init
.pyc", line 266, in getattr
COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))

@nvaccessAuto

Comment 5 by Michael Curran <mick@... on 2014-06-10 04:33
In [d4ccf3b]:
```CommitTicketReference repository="" revision="d4ccf3b18877def6c23eb890f8b242ab00b2591a"
Merge branch 't4090'. Fixes #4090

Changes:
Removed labels: incubating
State: closed
@nvaccessAuto

Comment 6 by mdcurran on 2014-06-10 04:35
Changes:
Milestone changed from next to 2014.3

@nvaccessAuto nvaccessAuto added the bug label Nov 10, 2015
@nvaccessAuto nvaccessAuto added this to the 2014.3 milestone Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment