Closed Bug 574303 Opened 15 years ago Closed 15 years ago

Handle to the window that is displaying the caret is 0 when moving caret from body- to subject-field.

Categories

(Thunderbird :: Message Compose Window, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 503428

People

(Reporter: raziel_206_, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 (.NET CLR 3.5.30729) Using GetGUIThreadInfo() to retrieve the hwndCaret. A11y is enabled. Reproducible: Sometimes Steps to Reproduce: 1. Write email. 2. Type something in email body. 3. Type something in subject field. Unable to get the caret window most of the time. Typing somewhere else and then in subject field, does not result in this behavior. Actual Results: Most of the time hwndCaret is 0. Expected Results: A valid hwndCaret.
Listening to all events with SetWinEventHook, including all IA2 events except IA2_EVENT_TEXT_INSERTED and IA2_EVENT_TEXT_REMOVED. Using the keyboard, starting in body: 1. Shift+TAB to go back to subject field. Produces these events: IA2_EVENT_TEXT_CARET_MOVED, IA2_EVENT_TEXT_SELECTION_CHANGED. 2. The whole text is selected, no more events are received when I move the caret with left or right. 3. Pressing TAB to go back to body, does not trigger any events at all. Using the keyboard, starting in "To:" field: 1. Press TAB to go to the subject field, about 20 IA2_EVENT_TEXT_ATTRIBUTE_CHANGED events are triggered, and finally IA2_EVENT_TEXT_CARET_MOVED and IA2_EVENT_TEXT_SELECTION_CHANGED. 2. I'm able to move left and right and receive IA2_EVENT_TEXT_CARET_MOVED events. Using the mouse, starting in body: 1. Moving caret to subject field, results in no events. Moving caret left and right, still no events. 2. Moving caret back to body with the mouse, triggers IA2_EVENT_TEXT_CARET_MOVED. Using the mouse, starting in "To:" field (Works as expected): 1. Moving caret to subject field, triggers IA2_EVENT_TEXT_CARET_MOVED. (and not 20 IA2_EVENT_TEXT_ATTRIBUTE_CHANGED as seen with keyboard navigation). 2. Moving caret back to "To:" field, triggers IA2_EVENT_TEXT_CARET_MOVED.
Do you get the same results in safe-mode ? How would you feel about fixing this and providing us with a patch ?
Yes, the very same results. I'm sorry, but I'm busy with other projects at the moment. And my vacation starts soon.
(In reply to comment #4) > I think this is a duplicate of > https://bugzilla.mozilla.org/show_bug.cgi?id=503428. Can you verify this with the next releases of Thunderbird (they aren't out yet)
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
I just tested with thunderbird-3.1.3pre.en-US.win32.zip, and the problem has been resolved. The amount of IA2_EVENT_TEXT_ATTRIBUTE_CHANGED events are also normal now.
You need to log in before you can comment on or make changes to this bug.