Open Bug 844368 Opened 12 years ago Updated 3 years ago

Focus outline not triggered after find is closed

Categories

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

19 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: charles.belov, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 Build ID: 20130215130331 Steps to reproduce: Steps: 1. With userContent.css containing a:active, a:focus { outline: invert dotted 1px } went to http://www.nextmuni.com/predictor/simpleRouteSelector.shtml?a=sf-muni 2. Ctrl-F to open Find dialog 3. Type "54" (without the quotes) 4. Press Escape to close Find dialog Actual results: No outline around "54-Felton" You can confirm that the link is the focus by pressing enter. The browser goes to the list of stops for the 54-Felton. If you then click the back button, the link for 54-Felton has the dotted line as expected. Expected results: Dotted outline around "54-Felton"
Did it use to work in previous versions of Firefox?
Flags: needinfo?(charles.belov)
I don't know for sure. There were a few changes that happened around the same time: 1. I went from a computer with Windows XP to a new computer with Windows 7. 2. I went from Firefox 18 to 19. 3. I added a:active, a:focus { outline: invert dotted 1px } to userContent.css in reaction to no longer getting the outline on focus. However, I don't recall whether #2 or #3 happened first.
Flags: needinfo?(charles.belov)
I tested with various old versions and I got the same result (no dotted line). Are you totally sure the code written in userContent.css is valid?
Flags: needinfo?(charles.belov)
My userContent.css in fact did not validate. I've updated it and it now validates on the W3C CSS validator as CSS3, but I get the same results. However, if you are getting the problem on earlier versions, then the answer is apparently no, it is not new to this version. Here is my entire code for the a tag: a:link { text-decoration: underline ! important; } a:visited { text-decoration: underline ! important; } a:hover { text-decoration: underline ! important; } a:active { text-decoration: underline; ! important; } a:active, a:focus { outline: invert dotted 1px }
Flags: needinfo?(charles.belov)
Component: Untriaged → Event Handling
Product: Firefox → Core
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.