New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

Projects
None yet
1 participant
@nvaccessAuto

nvaccessAuto commented Apr 24, 2014

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

This comment has been minimized.

nvaccessAuto commented Apr 24, 2014

Comment 1 by Michael Curran <mick@... on 2014-04-24 05:00
In [f66c054]:

Merge branch 't4090' into next. Incubates #4090

Changes:
Added labels: incubating

@nvaccessAuto

This comment has been minimized.

nvaccessAuto commented Apr 28, 2014

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

This comment has been minimized.

nvaccessAuto commented May 6, 2014

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: <bound method Dynamic_IAccessibleRichEdit20WindowNVDAObject.script_caret_moveByLine of <NVDAObjects.Dynamic_IAccessibleRichEdit20WindowNVDAObject object at 0x0477FC10>> 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 <NVDAObjects.Dynamic_IAccessibleRichEdit20WindowNVDAObject object at 0x0477FC10> 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

This comment has been minimized.

nvaccessAuto commented Jun 10, 2014

Comment 5 by Michael Curran <mick@... on 2014-06-10 04:33
In [d4ccf3b]:

Merge branch 't4090'. Fixes #4090

Changes:
Removed labels: incubating
State: closed

@nvaccessAuto

This comment has been minimized.

nvaccessAuto commented Jun 10, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment