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 607414 - When I try writing a message with Thunderbird 3.0, sometime the message edit box is not spokened after I pressing a tab key after with the subject edit box
When I try writing a message with Thunderbird 3.0, sometime the message edit ...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: speech
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: Willie Walker
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-19 07:32 UTC by Hammer Attila
Modified: 2010-08-01 23:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This is a debug.out file, possible shows what the problem. (527.08 KB, application/octet-stream)
2010-01-19 07:32 UTC, Hammer Attila
  Details
Patch committed to master for GNOME 2.29.6 (3.20 KB, patch)
2010-01-25 21:38 UTC, Willie Walker
committed Details | Review

Description Hammer Attila 2010-01-19 07:32:44 UTC
Created attachment 151739 [details]
This is a debug.out file, possible shows what the problem.

Dear Developers,

I found a very disturb bug with Orca and Thunderbird 3.0 usability.
Some time (very often), if I try write a new message with thunderbird 3.0, the message edit box is impossible to use when I press a Tab key after I write the e-mail subject.
If this happen and I write the message text, navigation operations is not working. Impossible to navigate line by line the edit box, word by word in edit box, etc.
Only solwe the problem (but not always) with I change application task with Alt+Tab key combination, and change task again with Thunderbird 3.0.

I attaching a debug.out file, I hope show what the problem.
I try begin write two e-mails. First try all works fine, second try the problem is present and happen.
Both tryed testing I give address with orca-list at gnome.org, I write a subject, and begin writing e-mail text with message box.

How can you try reproduce this problem?
1. Please use Thunderbird 3.0 stable version and latest Orca git master version.
2. Try following steps:
2.1. Press Ctrl+N combination after Thunderbird 3.0 is launched.
2.2. Write a phantom e-mail address.
2.3. Press a tab key, and write the subject.
2.4. Press a Tab key again. If you does'nt hear nothing, you see this problem is reproduced. If you try write any text, impossible using navigation keys. If you hear "Blank" text ("Üres" in hungarian Thunderbird version) after you write a subject and pressing a Tab key, the problem is now not happened, please try repeat the test with another e-mail writing.

Attila
Attila
Comment 1 Willie Walker 2010-01-19 22:25:01 UTC
Confirming.  Many thanks for the tests to reproduce the bug -- they helped a lot.  Something definitely strange is happening with respect to focus, and I can make it happen before I even tab to the message content area: if I type the subject and then press the left arrow to review the subject before tabbing away from it, Orca doesn't seem to present the characters as I move over them.

I debugged this a little bit (not a lot) and it seems as though something is happening with the LOCUS OF FOCUS, but I'm not quite sure what.  I wonder if we might have a "==" vs. isSameObject discrepancy happening somewhere.
Comment 2 Willie Walker 2010-01-25 18:39:34 UTC
I've spent a lot of time debugging this and have fallen victim to the old adage: "As our circle of knowledge expands, so does the circumference of darkness surrounding it."

I think there might be a couple separable problems here,  but I'm not sure.  This is all being done on OpenSolaris b131 with Orca from git master and the version of Thunderbird that comes with b131 (Thunderbird 3.5.6):

1) When typing a subject, if press the left arrow key, I sometimes stop getting updates from Orca. We still get caret-moved events, but no longer get updates.  In debugging this, I think what is happening is that Thunderbird is setting the caret context it its onCaretMoved method at http://git.gnome.org/browse/orca/tree/src/orca/scripts/apps/Thunderbird/script.py#n199 and then calling Gecko's onCaretMoved just before returning.  Gecko's onCaretMoved method then sees that the caret context is the same at http://git.gnome.org/browse/orca/tree/src/orca/scripts/toolkits/Gecko/script.py#n1447 and then returns without processing the event.

I believe this problem might be cured by adding a ROLE_ENTRY check to Thunderbird's isEditableMessage method so that the isEditableMessage block at the beginning of Thunderbird's onCaretMoved method will be called.  Seems to work for me, but that kind of expands what "isEditableMessage" really means.  Joanie, what to you think?

2) When tabbing from the subject to the main message area, I stop getting updates from Orca.  We still get caret-moved events while typing or arrowing in the main message area, but Orca no longer presents anything.  What I found is happening here is that the call to getCaretContext ends up returning the "Subject" entry rather than the document frame for the message area for some reason.  The call can be found at http://git.gnome.org/browse/orca/tree/src/orca/scripts/toolkits/Gecko/script.py#n1775.  This problem might be the source of this bug report.  I'm not exactly sure what to do here, except maybe create a custom getCaretContext for Thunderbird, but I'm not exactly sure that would be the right thing to do.  What do you think, Joanie?

3) When I tab back to the subject, we no longer get any caret-moved events from Thunderbird for the subject area. This seems to be the bug described at bug #588204 (and Mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=503428)
Comment 3 Willie Walker 2010-01-25 21:38:24 UTC
Created attachment 152266 [details] [review]
Patch committed to master for GNOME 2.29.6

This patch should hopefully fix the problem.  It was a joint effort between Joanie and myself.
Comment 4 Hammer Attila 2010-01-26 12:46:37 UTC
Will, your patch fixed the problem.
The writing new message, reply message is working right again, thank you. I tryed to press Shift+Tab key after go to the message body and pressing Tab key, works fine.

Still have one problem, but I think this is not this bugreport subject:
When I go back with e-mail subject and would like editing the subject, arrow keys is not working, Orca not spokening the words, characters etc. This is a Thunderbird 3.0 bug or Orca bug?
If this is an Orca bug and need, I opening a bugreport with this problem, and if not need do any fix with this bugreport, I think safe changing status to resolved.

Attila
Comment 5 Willie Walker 2010-01-26 13:34:27 UTC
(In reply to comment #4)
> Will, your patch fixed the problem.
> The writing new message, reply message is working right again, thank you. I
> tryed to press Shift+Tab key after go to the message body and pressing Tab key,
> works fine.

Excellent.

> Still have one problem, but I think this is not this bugreport subject:
> When I go back with e-mail subject and would like editing the subject, arrow
> keys is not working, Orca not spokening the words, characters etc. This is a
> Thunderbird 3.0 bug or Orca bug?

I believe this is what I describe in comment #2:

(In reply to comment #2)
> 3) When I tab back to the subject, we no longer get any caret-moved events from
> Thunderbird for the subject area. This seems to be the bug described at bug
> #588204 (and Mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=503428)

Is this what you're seeing?
Comment 6 Hammer Attila 2010-01-26 15:34:37 UTC
Will, yes, your linked bugreports is equals my problem.

Attila
Comment 7 Willie Walker 2010-01-26 15:43:14 UTC
Thanks!  Closing this bug.