unable to reload page using F5 when disabled element has focus




14 years ago
2 years ago


(Reporter: jepsar, Unassigned)


(Depends on: 1 bug, {testcase})

Firefox Tracking Flags

(Not tracked)



(1 attachment)



14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

I'm working on a page with "previous" and "next" <button>'s on it to browse
through <div>'s on a page (javascript: style.display = 'block'|'hidden'). On the
last page I disable the "next" <button> (javascript: disabled = 'disabled'). In
this situation the disabled <button> has focus and I can't use some (all?) key
shortcuts like F5.
If needed I can put a test page online tonight.

Reproducible: Always

Steps to Reproduce:
See details

Actual Results:  
See details

Expected Results:  
See details
Yes, please attach a testcase (by using Create a New Attachment) or put a
testcase somewhere online.
Also try testing with the latest nightly trunk build:

Comment 2

14 years ago
Created attachment 177029 [details]
Bug example 

I've also tested this with the 10-Mar-2005 17:03 trunk build

Comment 3

14 years ago
Maybe the button should loose focus when disabled by javascript
I think another bug is that the disabled element should not have focus at that
point. When that would be fixed, it probably would also fix your bug.
Depends on: 264820
Keywords: testcase

Comment 5

14 years ago
In fact we always need to move the focus if an element, or an ancestor to an
element is disabled, hidden or destroyed.

This should be done at the most general level possible so that it benefits not
just HTML, but also XUL and everything else.

Comment 6

14 years ago
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050329 Firefox/1.0+

(In reply to comment #2)
> Created an attachment (id=177029) [edit]
> Bug example

Status -> NEW

FWIW Ctrl+F5 works. In fact, just pressing Ctrl, then F5 separately works too.
Ever confirmed: true


13 years ago
OS: Windows XP → All
QA Contact: jruderman → keyboard.navigation
Mass un-assigning bugs assigned to Aaron.
Assignee: aaronleventhal → nobody

Comment 8

2 years ago
This looks like a dup of 486863.
You need to log in before you can comment on or make changes to this bug.