Ticket #451 (closed defect: fixed)
IE6 sometimes returns trash in accName
| Reported by: | aleksey_s | Owned by: | aleksey_s |
|---|---|---|---|
| Priority: | minor | Milestone: | 2009.1 |
| Component: | Core | Version: | development |
| Keywords: | needsCodeReview | Cc: | sergei.starovoi@gmail.com |
| Operating system: | Windows XP | Blocked by: | |
| Blocking: |
Description
My friend reported to me that NVDA reads the random characters after a link name in ie6 addons settings dialog. Further debugging shown that accName of those link objects contain a trash text after the null characters at end of the string.
for example:
nav.IAccessibleObject.accName(0)
u'\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 ...\x00\x00\x00\u0432\u0430\x00\u0435\x00'
from msdn:
A BSTR is a composite data type that
consists of a length prefix, a data string, and a terminator.
I suspect that msaa returns incorrect string length. Seems as we need to filter out somehow the strings received from msaa.



NVDA is developed by