Better handle dead caret / selection text ranges in Microsoft Edge #7997
Link to issue number:
MS bug 14251419: NVDA Desktop : MSA : We are blocked to Enter password while using NVDA Screen reader.
Summary of the issue:
In many cases, the UIA textRanges we get from Microsoft Edge, may become broken or die if the page mutates a significant amount.
Description of how this pull request fixes the issue:
Known issues with pull request:
Change log entry:
The text was updated successfully, but these errors were encountered:
Specifically: * No longer support remembering the last caret position for previously visited documents in Edge. This never worked and only caused errors. The UIA textRange we stored could not be used on new documents. * Detect and fix the case where the textRange we have stored as the browseMode selection dies due to major page mutations. Replace it with the first psoition in the document in this case.