Skip to content
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

textInfo.expand(paragraph) works incorrectly in Chrome. #16530

Open
mltony opened this issue May 13, 2024 · 2 comments
Open

textInfo.expand(paragraph) works incorrectly in Chrome. #16530

mltony opened this issue May 13, 2024 · 2 comments
Labels
blocked/needs-external-fix blocked/needs-info The issue can not be progressed until more information is provided. blocked/needs-technical-investigation Issue is blocked. A technical investigation is required to progress the issue. needs-triage

Comments

@mltony
Copy link
Contributor

mltony commented May 13, 2024

Steps to reproduce:

  1. Open any github issue in Chrome and navigate to comment edit box. (The issue seems to reproduce with any multiline edit box, github issue is just an example)
  2. Paste some long sentence that spans multiple lines, for example:

    In the best of times, it is the worst of times; in the worst of times, it is the best of times. It was the age of wisdom, it was the age of foolishness; it was the epoch of belief, it was the epoch of incredulity; it was the season of Light, it was the season of Darkness; it was the spring of hope, it was the winter of despair. We had everything before us, we had nothing before us; we were all going direct to Heaven, we were all going direct the other way – in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.

  3. Open NVDA python console and type:
    >>> t=focus.makeTextInfo('caret')
    >>> t.expand('paragraph')
    >>> t.collapse(True)
    >>> t.expand('paragraph')
    >>> t.text
    'only.'
    

Actual behavior:

It selects only the last line - even though we requested to expand to paragraph.

Expected behavior:

textInfo.expand(paragraph) should expand to a paragraph, not line.

NVDA logs, crash dumps and other attachments:

N/A

System configuration

NVDA installed/portable/running from source:

Running from source

NVDA version:

master

Windows version:

Windows 11

Name and version of other software in use when reproducing the issue:

Google Chrome:
appModule.productVersion: '124.0.6367.158'

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.

N/A

If NVDA add-ons are disabled, is your problem still occurring?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

N/A

@seanbudd
Copy link
Member

This is most likely a bug in Chromium. Has this been reported to chromium?

@seanbudd seanbudd added blocked/needs-external-fix blocked/needs-technical-investigation Issue is blocked. A technical investigation is required to progress the issue. labels May 13, 2024
@seanbudd
Copy link
Member

What TextInfo is this? Can you provide a sample to test with and/or a log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/needs-external-fix blocked/needs-info The issue can not be progressed until more information is provided. blocked/needs-technical-investigation Issue is blocked. A technical investigation is required to progress the issue. needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants