nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.11k stars 637 forks source link

when reading a .pdf file in firefox the entire document is not read #14589

Open fernando-jose-silva opened 1 year ago

fernando-jose-silva commented 1 year ago

Steps to reproduce:

open a .pdf document in firefox, I believe a document with at least 15 pages. start reading the document in a sprint, nvda laptop + a

Actual behavior:

in my tests for page 3 or 5, nvda will stop reading the document and display the message for all pages: chart loading page

Expected behavior:

nvda should read the entire .pdf document like it does in chrome. It seems that firefox stops loading pages as nvda reads the document, this forces you to stop reading and press ctrl + f5. it would be interesting for nvda to access new pages automatically as it happens in chrome.

System configuration

NVDA installed/portable/running from source:

portable

N

firefox.txt VDA version: nvda.exe, NVDA alpha-27590,180c9f2b

Windows version:

10 19045.2251

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

firefox 109.0

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 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?

yes log

fernando-jose-silva commented 1 year ago

firefox.txt

jcsteh commented 1 year ago

Firefox doesn't load entire PDF documents because they can potentially be massive (thousands of pages), which would take a very long time to load. However, it should load new pages as you scroll to them. I believe NVDA scrolls during say all, so I'm not sure why this doesn't trigger in this case.

If you down arrow into those pages manually, does the content get loaded?

fernando-jose-silva commented 1 year ago

@jcsteh thank you very much for the feedback when reading continues with nvda + a laptop command, and nvda announces graphic loading page, if you stop reading with ctrl and navigate with the up and down arrows it doesn't make the pages read by nvda, I managed to make nvda read the page by pressing ctrl + f5.

jcsteh commented 1 year ago

Could you provide a link to a PDF which reproduces this? I just want to be sure we have consistent reproduction of the issue here.

fernando-jose-silva commented 1 year ago

Cegueira e Autismo -Prevencion e intervencion en los trastornos del desarrollo.pdf Thank you very much, attached is the .pdf document.

jcsteh commented 1 year ago

I previously believed NVDA would scroll during say all based on this code. However, it definitely doesn't, as demonstrated by this test case:

data:text/html,<body onscroll="alert('scroll');"><style>hr { height: 100vh; }</style><p>a</p><hr><p>b</p><hr><p>c</p><hr><p>d</p>

Whenever this page scrolls, it pops up a dialog telling you so. If you use the arrow keys on this page, you see that dialog. However, if you use say all, you don't.

I now recall why it doesn't work, as I described in https://github.com/nvaccess/nvda/issues/904#issuecomment-316310753.

In short, this issue will be fixed if/when #904 is fixed.