After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577239 - Cannot navigate by line through multi-line HTML list items in Firefox/Thunderbird when arrowToLineBeginning is False
Cannot navigate by line through multi-line HTML list items in Firefox/Thunder...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: 2.26.1
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403 404409
 
 
Reported: 2009-03-29 23:08 UTC by David Price
Modified: 2009-04-05 03:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Example HTML page (963 bytes, text/html)
2009-03-29 23:11 UTC, David Price
  Details
Debug log in Firefox (69.92 KB, text/plain)
2009-03-29 23:15 UTC, David Price
  Details
Thunderbird email attachment (9.41 KB, text/plain)
2009-03-29 23:33 UTC, David Price
  Details
debug log in Thunderbird (72.22 KB, text/plain)
2009-03-29 23:36 UTC, David Price
  Details
revision 1 (1.00 KB, patch)
2009-04-02 04:16 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description David Price 2009-03-29 23:08:05 UTC
Please describe the problem:
If you are navigating by line through an html page and encounter a list item that spans multiple lines, Orca becomes stuck on the first line of the list item. If you navigate to the end of the first line and navigate using the right arrow key onto the second line, pressing the down arrow will move Orca's focus back to the first line, and the first line of the list item will be repeated.

Steps to reproduce:
1. Start Orca.
2. Start Firefox.
3. Open an HTML page which contains list items spanning multiple lines (example will be attached).
4. Navigate through the page using the down arrow and attempt to read the entire contents of a list item that spans multiple lines.
5. Once the first line of the list item is read repeatedly,press the end key, press the right-arrow key twice to get onto the next line, then press the down arrow key.


Actual results:
When you reach the list item that spans multiple lines, the first line of that list item is repeated each time the down arrow is pressed.

Expected results:
Each line of the list item would be read in order as focus moved across them.

Does this happen every time?
yes.

Other information:
Read-all successfully reads all lines of a multi-line list item.
Comment 1 Willie Walker 2009-03-29 23:11:35 UTC
Thanks David!  Which version of Orca are you using, which version of FF and Thunderbird are you using, which version of GNOME are you on, and which OS distribution and version are you using?
Comment 2 David Price 2009-03-29 23:11:48 UTC
Created attachment 131648 [details]
Example HTML page

A simple web page containing an ordered list and an unordered list.
Comment 3 David Price 2009-03-29 23:15:02 UTC
Created attachment 131649 [details]
Debug log in Firefox 

Debug log showing Orca's behavior when reading list items spanning multiple lines.
Comment 4 Willie Walker 2009-03-29 23:18:40 UTC
I tried reproducing this on OpenSolaris 20081.11 b110 (GNOME 2.24.2) with Firefox 3.1 Beta 2 and Orca from trunk.  It seems to read the lines from the attached HTML page just fine and doesn't get stuck.  :-(
Comment 5 David Price 2009-03-29 23:29:14 UTC
I've seen this using versions of Orca from 2.24.0 through svn trunk today (2.27.1pre, revision 4655).
Ubuntu Intrepid using gnome 2.24.x 
Firefox 3.6a1pre
Thunderbird v3.0b3pre 

As I said in an email message last week, I've seen this for a long time. I'll attach a tb email message and log as well.
Comment 6 David Price 2009-03-29 23:33:07 UTC
Created attachment 131651 [details]
Thunderbird email attachment 

Email message from Thunderbird which contains an ordered list that also doesn't allow line by line navigation of a multi-line list item
Comment 7 David Price 2009-03-29 23:36:41 UTC
Created attachment 131652 [details]
debug log in Thunderbird 

Shows repeating of first line of list item that spans multiple lines. Also, I pressed the end key, the right arrow a few times and then the down arrow again.
Comment 8 David Price 2009-03-29 23:50:32 UTC
I just tested the html page attached above in Firefox 3.0.8 and 3.1b4pre with the same behavior. Let me know if you would like to see debug logs. Thanks.
Comment 9 Joanmarie Diggs (IRC: joanie) 2009-03-30 00:32:02 UTC
I'll add this one to my 2.26.1 list. Unless you want it Will. :-)
Comment 10 Joanmarie Diggs (IRC: joanie) 2009-04-02 03:54:00 UTC
I can confirm this bug as described if I turn off Orca's setting to always position the cursor at the start of the line. Changing status to confirmed. We'll get this fixed for 2.26.1. Thanks for the report David!
Comment 11 Joanmarie Diggs (IRC: joanie) 2009-04-02 04:16:08 UTC
Created attachment 131889 [details] [review]
revision 1

This patch solves the reported problem -- at least for the Firefox test case. At the moment I do not have an installed t-bird trunk. 

It's pylinted. 

Because the change is isolated to blocks of code which do NOT get executed unless the user has opted to disable Orca's setting to position the text at the beginning of the line, and because we have no regression tests that are run with that setting disabled, running the regression tests will not tell us anything IMHO.

Therefore:

1. David, please beat on this patch for a few days in both Firefox and Thunderbird.

2. I'll write a few regression tests which will include this scenario and the disabling of the setting in question.

While manually testing, I did notice that if one arrows to the middle of the first line of a list item which spans multiple lines, the initial press of Down Arrow causes the caret to be positioned at the beginning of the line first. I've not debugged that yet. I will. But that might be a fix that needs to take place elsewhere (and hence be better tested), so I'll address that issue separately. This patch at least addresses the reported problem and does so in an isolated fashion.
Comment 12 Willie Walker 2009-04-02 13:03:20 UTC
The patch looks nice and isolated and I say check it in if it solves the problem David is experiencing.  Thanks Joanie!
Comment 13 Jose Vilmar Estacio de Souza 2009-04-02 13:41:53 UTC
Works fine with thunderbird too.
Comment 14 David Price 2009-04-02 14:02:00 UTC
Joanie, this patch is working very well. I've tested it on 5 web pages and 3 email messages and Orca is reading all of the multi-line list items perfectly. Thanks!

Comment 15 Joanmarie Diggs (IRC: joanie) 2009-04-05 03:00:54 UTC
Patch, along with David's test case (thanks David!) and a regression test,  committed to both trunk and the gnome-2-26 branch.

I've opened bug 577979 for the issue I point out at the end of my comment #11.