Closed Bug 253304 Opened 20 years ago Closed 20 years ago

Frame doesn't get focus after using its scrollbar.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 73493

People

(Reporter: markus.lindstrom, Unassigned)

References

()

Details

(Keywords: testcase)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040727 Firefox/0.9.1+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040727 Firefox/0.9.1+

(Bug is also present in Seamonkey 20040726)

It seems that when the scrollbar in a frame is used, the frame doesn't get
focused. As such, Gecko handles keyboard up/down events incorrectly, as the
previously focused frame is the one scrolling when pushing those keys, which is
quite unintuitive, as opposed to the one that was scrolled with the scrollbar.

Please follow the below steps that demonstrate the problem. I'll try throwing a
testcase together meanwhile.

Reproducible: Always
Steps to Reproduce:
1. Go to the URL in the report.
2. Follow the "général" link, which changes the content of the frame below it.
3. Use the scrollbar in that frame, the push the up/down keys, and notice that
the frame scrolling is actually the one where you clicked the link.

Actual Results:  
The wrong frame gets scrolled.

Expected Results:  
The frame whose scrollbar was used should have grabbed the focus, and thus the
up/down keys should have scrolled it.
I made a testcase, but I had to upload it elsewhere as it spans several files
(stupid frames...): http://www.lalain.firstream.net/mamour/bugzilla/test253304.html

The problem can be reproduced with a 100% success rate, give it a try, I dare
you! ;-)
Keywords: testcase

*** This bug has been marked as a duplicate of 73493 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.