-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Incorrect behavior of TextInfo.updateCaret() in certain situations in Google Chrome. #11931
Comments
Yes, I reproduced it here. |
I also found that updateFocus() behavior is incorrect when any unicode character is present in the edit box. For example, another way to repro this issue is like this. Enter the following two lines into any edit box in Chrome:
Position cursor in the beginning of the second line and try to move it anywhere using textInfo.move API. Then after calling updateCaret() function caret is not going to be where you would expect it to be. |
I am a user of one of Tony's addons which suffers from this issue, and I would like to add my vote for prioritizing this. |
I am troubled by this problem and I hope to raise its priority. |
I did some more investigation on this and managed to drill down to an underlying issue in chromium. I reported that issue: |
The Chromium bug has this note:
Also:
Does this still repro or can we close both bugs now? |
In Google Chrome Canary this works as expected, tested with NVDA 2024.1 Beta 13. The bugs in Crhomium can be closed. I will close this one as well as works for me. |
It still reproduces on my Chrome. I updated chromium issue with my screencast. |
@mltony there was some progress on that issue in Chromium, is this issue still reproducible in Canary 132 with NVDA 2024.4.1? |
Hi @Adriani90 You wrote:
Where did you see Chromium's progress on this issue? The original bug created by Tony has not been updated recently. |
Actually this indeed can be closed - the issue as described here indeed doesn't reproduce anymore. |
Hi @mltony There are some new updates internally, probably after Thanksgiving. If you are planning to reopen a chromium bug or would like to provide some summary/overview in the original bug then it might be helpful. |
@cary-rowen, chromium bug is still open - I didn't close that: |
OK, just make sure that bugs in chromium can still be reproduced. |
Description
In chrome, when text in edit box has a blank line (two newline characters together),
updateCaret()
function ofTextInfo
may behave incorrectly. It seems likeTextInfo.move()
function works fine, butupdateCaret()
then fails to actually place the cursor to the actual location oftextInfo
. In particular, in the example below, it seems impossible to set cursor to any place beyond the first line.Steps to reproduce:
3.Press
Control+Home
and thenRight Arrow
to make sure system caret is at letter B.4. Press
NVDA+Control+Z
to open python console.5. Enter the following script:
Actual behavior:
Cursor is at letter A in the very beginning of the edit box.
Expected behavior:
Cursor should be in the very end of the first line, right after letter B.
System configuration
NVDA installed/portable/running from source:
Installed
NVDA version:
2020.3
Windows version:
Windows 10
Name and version of other software in use when reproducing the issue:
Google Chrome Version 87.0.4280.88 (Official Build) (32-bit)
Other information about your system:
Other questions
Does the issue still occur after restarting your computer?
Yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
No
If addons are disabled, is your problem still occuring?
Yes
Did you try to run the COM registry fixing tool in NVDA menu / tools?
Yes
The text was updated successfully, but these errors were encountered: