Closed
Bug 307172
Opened 19 years ago
Closed 19 years ago
Focus never returns when a link having focus is hidden
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: malika.jaiswal, Assigned: mkaply)
Details
(Keywords: access, fixed1.8)
Attachments
(2 files)
|
906 bytes,
text/html
|
Details | |
|
1.10 KB,
patch
|
bryner
:
review+
bryner
:
superreview+
mkaply
:
approval1.8b5+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 When a Link having focus is hidden the focus never comes back and the keyboard keys don't work. Reproducible: Always Steps to Reproduce: A Testcase is provide for this . 1. Open the file Testcase.htm 2. Press "A" to get the hidden link. 3. After this press "Esc" 4. Try to use keyboard keys e.g Press "ctrl+O" Actual Results: 1. On Pressing "A" a hidden link is seen with focus on it. 2. On Pressing "Esc" the link is hidden. 3. On Pressing "Ctrl+O" nothing happens i.e, the Open File window does not open. None of the keyboard shortcuts work Expected Results: On Pressing "Ctrl+O" the Open File window should open. All the keyborad shortcuts should work.
| Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Confirming the bug on FireFox 1.06. The focus seems to be lost once the link is hidden after pressing escape
Reproducible with Mozilla 1.8b1, Deer Park a2 and SeaMonkey/20050904, related to/duplicate of Core bug 255317?
| Reporter | ||
Comment 4•19 years ago
|
||
This problem seems to be happening from Mozilla 1.7RC1(Released April 21, 2004) and its working fine till Mozilla 1.7 Beta (Released March 18, 2004).
Comment 5•19 years ago
|
||
> its working fine till Mozilla 1.7 Beta (Released March 18, 2004). Can someone confirm that? I don't think this ever worked right. I believe this has been a known issue for some time -- the focus code just never dealt with it properly. See bug 255187 -- this is probably a dupe of that. I suggest we offer the workaround of tracking the focus and storing it in a variable. When hiding something with focus, using gLastFocus.blur() before actually hiding it. It could be that using timeouts is necessary either before the blur, or before hiding the element, or both.
| Reporter | ||
Comment 6•19 years ago
|
||
> Can someone confirm that? I don't think this ever worked right.
With the given Testcase I am able to recreate the problem in Mozilla 1.7 Beta
but it fails in Mozilla 1.7 RC1.WFM with Mozilla 1.7b (and Mozilla 1.6) but reproducible with Mozilla 1.7b/20040409 (and Mozilla 1.7RC1).
Comment 8•19 years ago
|
||
Fix given for bugid #214373 is breaking. I think we should fix this bug original bug.
Comment 9•19 years ago
|
||
Bryner, I can confirm that bug 214373 caused this. This is a problem in branch, trunk and 1.7.x Removing this line from PresShell::HandleEvent() fixes things - esm->GetFocusedContent(getter_AddRefs(mCurrentEventContent));
Assignee: general → bryner
Comment 10•19 years ago
|
||
This fixes the regression without breaking the fix for bug 214373. Brian, please check it carefully since it'd be good to get in on the branches.
Assignee: bryner → aaronleventhal
Status: UNCONFIRMED → ASSIGNED
Attachment #197141 -
Flags: superreview?(bryner)
Attachment #197141 -
Flags: review?(bryner)
Updated•19 years ago
|
Updated•19 years ago
|
Component: General → Keyboard: Navigation
Product: Mozilla Application Suite → Core
Version: unspecified → 1.0 Branch
Updated•19 years ago
|
Flags: blocking1.8b5?
Flags: blocking1.7.12?
Comment 11•19 years ago
|
||
I have tested the fix provided by Aaron. Its working fine on OS/2. confirming that its not breaking fix for 214373.
Comment 12•19 years ago
|
||
Comment on attachment 197141 [details] [diff] [review] Don't get current event content if current event frame is null. Patch for trunk and MOZILLA_1_8_BRANCH .... patch for 1.7 would be similar This should be ok, and I think it matches the original intent of the code.
Attachment #197141 -
Flags: superreview?(bryner)
Attachment #197141 -
Flags: superreview+
Attachment #197141 -
Flags: review?(bryner)
Attachment #197141 -
Flags: review+
Updated•19 years ago
|
Attachment #197141 -
Flags: approval1.8b5?
Comment 13•19 years ago
|
||
Fixed on trunk. Not fixed on either the 1.7 or 1.8 branch yet. Should I mark it fixed and then we add fixed1.7 and fixed1.8 keywords later?
Version: 1.0 Branch → 1.7 Branch
| Assignee | ||
Comment 14•19 years ago
|
||
Comment on attachment 197141 [details] [diff] [review] Don't get current event content if current event frame is null. Patch for trunk and MOZILLA_1_8_BRANCH .... patch for 1.7 would be similar a=mkaply since this is a regression
Attachment #197141 -
Flags: approval1.8b5? → approval1.8b5+
Updated•19 years ago
|
Flags: blocking1.8b5? → blocking1.8b5+
Comment 15•19 years ago
|
||
Does this mean that this change can be backed out? https://bugzilla.mozilla.org/attachment.cgi?oldid=62198&action=interdiff&newid=62508&headers=1
Comment 16•19 years ago
|
||
This is fixed now on trunk and 1.8 branch. Mike said he would fix this on the 1.7 branch. Mike will you close this when you're done with that?
Assignee: aaronleventhal → mozilla
Status: ASSIGNED → UNCONFIRMED
Comment 17•19 years ago
|
||
This caused bug 310350. Recommend backing out until we can find a safe fix.
Comment 18•19 years ago
|
||
(In reply to comment #17) > This caused bug 310350. Recommend backing out until we can find a safe fix. Apologies, it looks like this was not the cause of bug 310350.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 19•19 years ago
|
||
Testcase fails to work if typeaheadfind is turned on. Shouldn't in page key controls have priority over typeahead search?
Comment 20•19 years ago
|
||
This is fixed in the trunk and on the 1.8 branch. We don't need to take the fix on any other branch.
Status: NEW → RESOLVED
Closed: 19 years ago
Flags: blocking1.7.12?
Resolution: --- → FIXED
Updated•6 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
•