Closed
Bug 300284
Opened 19 years ago
Closed 19 years ago
Unable to shift-tab out of Compose body into subject line (plain text or HTML).
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: stephend, Assigned: aaronlev)
References
Details
(Keywords: regression)
Attachments
(1 file)
832 bytes,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
benjamin
:
approval1.8b4+
|
Details | Diff | Splinter Review |
Build ID: 2005-07-10-05, Windows XP SeaMonkey trunk. Summary: Unable to shift-tab out of Compose body into subject line (plain text or HTML). Steps to Reproduce: 1. Open mail/news, click Compose. 2. Place the cursor in the body window (HTML or plain text doesn't matter). 3. Hold down Shift, press Tab. Expected Results: Shift-tab should backwards9cycle focus into the subject line from the compose body. Actual Results: No focus move happens.
Comment 1•19 years ago
|
||
This is a regression; this used to work sometime in early 2005. Unfortunately, Andrew Schultz and I get different dates for the regression range and neither range has any relevant checkins...
Comment 2•19 years ago
|
||
Early 2005? The checkins I'd like to suspect most were aaron's focus changes around November 2004, so CCing hiim in case he has any ideas. In the mean time I've traced the code and it does reach ShiftFocusInternal which I expected.
Comment 3•19 years ago
|
||
Well, Andrew and I were seeing results differing by a month (he had it not working as of mid-January, while over here it seemed to work till mid-February)....
Comment 4•19 years ago
|
||
With valgrind, I get: Conditional jump or move depends on uninitialised value(s) nsEventStateManager::GetNextTabbableContent(nsIContent*, nsIContent*, nsIFrame*, int, int, nsIContent**, nsIFrame**) (nsEventStateManager.cpp:3480) nsEventStateManager::ShiftFocusInternal(int, nsIContent*) (nsEventStateManager.cpp:3226) nsEventStateManager::ShiftFocus(int, nsIContent*) (nsEventStateManager.cpp:3114) nsEventStateManager::PostHandleEvent(nsPresContext*, nsEvent*, nsIFrame*, nsEventStatus*, nsIView*) (nsEventStateManager.cpp:2094) line 3477 is PRInt32 tabIndex; nsIContent* currentContent = (*aResultFrame)->GetContent(); (*aResultFrame)->IsFocusable(&tabIndex); if (tabIndex >= 0) { some implementations of IsFocusable might not set aTabIndex. nsXULElement actually uses the incoming value as a default. Relevant code comes from bug 250006.
Assignee: nobody → aaronleventhal
Component: MailNews: Composition → Keyboard: Navigation
Depends on: 250006
OS: Windows XP → All
QA Contact: keyboard.navigation
Updated•19 years ago
|
Flags: blocking1.8b4?
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•19 years ago
|
||
Andrew Schultz, nice find -- thanks.
Assignee | ||
Updated•19 years ago
|
Attachment #190028 -
Flags: superreview?(bzbarsky)
Attachment #190028 -
Flags: review?(bzbarsky)
Updated•19 years ago
|
Attachment #190028 -
Flags: superreview?(bzbarsky)
Attachment #190028 -
Flags: superreview+
Attachment #190028 -
Flags: review?(bzbarsky)
Attachment #190028 -
Flags: review+
Assignee | ||
Updated•19 years ago
|
Attachment #190028 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #190028 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 6•19 years ago
|
||
Checking in nsFrame.cpp; /cvsroot/mozilla/layout/generic/nsFrame.cpp,v <-- nsFrame.cpp new revision: 3.569; previous revision: 3.568 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 7•19 years ago
|
||
(been waiting - I'll be so glad to get this back, so THANKS ...) possible dups 296468 bug 265582 can't characterize bug 186701 since I'm not MACy, but perhaps worth checking?
Reporter | ||
Comment 8•19 years ago
|
||
*** Bug 296468 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 9•19 years ago
|
||
*** Bug 265582 has been marked as a duplicate of this bug. ***
Comment 10•19 years ago
|
||
Testing with TB 1.0+0722, Win2K, the problem described in the summary has not been solved.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 11•19 years ago
|
||
Testing with Thunderbird version 1.0+ (20050722) on WinXP. Problem fixed. WORKSFORME. Did you download the 7/22 installer executable from http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-trunk/ ? Sometimes it takes a while for the new day's installer to be posted to that link. My suspicion is that you are really running 7/21.
Reporter | ||
Comment 12•19 years ago
|
||
works just fine for me with version 1.0+ (20050722) of Thunderbird and build 2005-07-22-05 on Windows XP.
Comment 13•19 years ago
|
||
If it was uninitialized before and the default is now "not tabbable" then the new behavior should be not tabbable (but consistently). So I'm not sure how the patch could fix the bug.
Assignee | ||
Comment 14•19 years ago
|
||
(In reply to comment #13) > If it was uninitialized before and the default is now "not tabbable" then the > new behavior should be not tabbable (but consistently). So I'm not sure how the > patch could fix the bug. Andrew, have you tried a 7/22 build? It was getting an ancestor frame in the editor to the currently focused one. The unitialized value was coming out positive, which changed whether it went into the following if branch: PRInt32 tabIndex; nsIContent* currentContent = (*aResultFrame)->GetContent(); (*aResultFrame)->IsFocusable(&tabIndex); if (tabIndex >= 0) { ... else if ((aIgnoreTabIndex || mCurrentTabIndex == tabIndex) && currentContent != aStartContent) { NS_ADDREF(*aResultNode = currentContent); return NS_OK; } } That code was executed when it was not supposed to be. I haven't gone through exactly what happened when it is, except to note that fixing the uninitialized value makes that not happen and fixes the bug in all my tests. Stephen Donner also noticed it is fixed in his build.
Comment 15•19 years ago
|
||
Fixed with 2005-07-22 builds.
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 years ago
Flags: blocking1.8b4?
Resolution: --- → FIXED
Reporter | ||
Comment 16•19 years ago
|
||
Verified using build 2005-07-23-05 on Windows XP SeaMonkey trunk.
Status: RESOLVED → VERIFIED
Updated•5 years ago
|
Component: Keyboard: Navigation → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•