Closed Bug 478147 Opened 17 years ago Closed 17 years ago

Focus rect missing from checkboxes on Vista

Categories

(Core :: Widget: Win32, defect, P1)

x86
Windows Vista
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: bws42, Assigned: jimm)

References

Details

(Keywords: access, fixed1.9.1)

Attachments

(8 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2a1pre) Gecko/20090211 Minefield/3.2a1pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2a1pre) Gecko/20090211 Minefield/3.2a1pre When giving focus to a checkbox on Vista there is no border change when using the Aero windows theme. Using the classic theme the focus border is only present on the bottom and right sides of the checkbox. Reproducible: Always Steps to Reproduce: 1. Give a checkbox focus Actual Results: Checkbox shows no indication that it has focus. Expected Results: Checkbox should show indication that it has focus.
Version: unspecified → Trunk
Also present on the 3.1 branch in Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090209 Shiretoko/3.1b3pre
I can confirm on Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090213 Shiretoko/3.1b3pre ID:20090213033101 This URL is helpful to replicate http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_form_checkbox
Attachment #362231 - Attachment description: focus border present on checkbox on vista aero → focus border missing on checkbox on vista aero
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-firefox3.1?
Severity: normal → major
Whiteboard: a10y
Attached file Reduced test case —
Any clue when this regressed?
Component: Theme → Disability Access
QA Contact: theme → disability.access
Keywords: access
Component: Disability Access → Widget: Win32
Flags: blocking-firefox3.1?
Product: Firefox → Core
QA Contact: disability.access → win32
Whiteboard: a10y
Must have been a while ago, looks like it's broken in 3.0.6 as well.
Re-requesting blocking 1.9.1 since the flag was cleared when the product/component were changed. This affects both keyboard navigation, and disability access when using caret browsing. I wonder if this also affects screen readers or not.
Flags: blocking1.9.1?
(In reply to comment #8) > I wonder if this also affects > screen readers or not. Most likely not: 1. Screen readers like JAWS or Window-Eyes that use a mirror driver on Vista and onwards will turn off Aero the moment they start, and they get focus information from MSAA and not from visual indicators anyway. 2. NVDA, which does not affect the Aero state, will also use MSAA/IAccessible2 and no screen information to get focus and state information and thus isn't affected by this, either.
Jim, can you take a look at this? I think this may have regressed in some last-minute 1.9.0 work I did to make the Vista theme not suck.. I'll dig up those bugs.
Flags: wanted1.9.1+
Flags: blocking1.9.1?
Flags: blocking1.9.1-
Priority: -- → P1
Assignee: nobody → jmathies
(In reply to comment #10) > Jim, can you take a look at this? I think this may have regressed in some > last-minute 1.9.0 work I did to make the Vista theme not suck.. I'll dig up > those bugs. Any idea how long ago it might have been?
Attached image zoomed in on a checkbox —
It looks like border actually is there. I stared at my screen for a while and finally noticed that it looked different. Took a screenshot and blew it up in Paint and you can actually see it. I don't know when Vladimir's changes would have been made, but I've got Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b3pre) Gecko/2008010205 Minefield/3.0b3pre at the moment and it still looks the same.
Attached image xp vs. vista —
Ok, so it's basically there, we just need to make it a bit more obvious.
Just out of curiosity, why are we drawing focus rects on Vista? The default vista visual style seems to have completly done away with them. The theme library handles drawing the backgrounds of these controls. If they are active and/or focused, the theme library takes care of drawing whatever visual effect the current style requires based on the focus state. In the default style, focus rects do not appear to be drawn on any of the basic controls. I've got a little bit of code rolled together that draws the older xp style focus rect on a checkbox if we decide to do this anyway. I'll post that next.
Attachment #362964 - Flags: review?(vladimir)
Comment on attachment 362964 [details] [diff] [review] vista checkbox focus patch v.1 This looks fine, though we're going to deviate from the vista look.. would rather we just did what vista should do and get rid of the focus rects (perhaps unless accessibility is turned on or something). But let's get this in anyway, since if we do that there will be other things we'd need to fix.
(In reply to comment #14) > Just out of curiosity, why are we drawing focus rects on Vista? The default > vista visual style seems to have completely done away with them. > > The theme library handles drawing the backgrounds of these controls. If they > are active and/or focused, the theme library takes care of drawing whatever > visual effect the current style requires based on the focus state. In the > default style, focus rects do not appear to be drawn on any of the basic > controls. > > I've got a little bit of code rolled together that draws the older xp style > focus rect on a checkbox if we decide to do this anyway. I'll post that next. Mike - any idea why we kept these around for vista? chatting with vlad he felt it had something to do with accessibility. Curious if we could turn these off by default except maybe under certain circumstances such as a11y being used or simply tying them to a pref. According to comment #9 some screen readers don't need these to work properly.
Summary: No indication that checkbox has focus → Focus rect missing from checkboxes on Vista
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attachment #362964 - Flags: approval1.9.1?
Depends on: 418521
Comment on attachment 362964 [details] [diff] [review] vista checkbox focus patch v.1 a191=beltzner
Attachment #362964 - Flags: approval1.9.1? → approval1.9.1+
Keywords: fixed1.9.1
Depends on: 1064503
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: