Closed Bug 1305362 Opened 8 years ago Closed 8 years ago

[e10s] should not focus on the disabled option for <select>

Categories

(Toolkit :: UI Widgets, defect, P2)

52 Branch
Unspecified
Windows
defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
e10s + ---
firefox49 --- wontfix
firefox50 --- wontfix
firefox51 --- affected
firefox52 --- fixed

People

(Reporter: over68, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Steps to reproduce:

1. Go to https://dl.dropboxusercontent.com/u/95157096/85f61cf7/11qokgb995.html.
2. Open the <select> element.
3. Hover over "Option B".


Expected results:

should not focus on the disabled option for <select> element when hovering.
Neil, any time for this?
Flags: needinfo?(enndeakin)
Priority: -- → P2
Assignee: nobody → enndeakin
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(enndeakin)
OS: Windows 7 → Windows
Hardware: x86_64 → Unspecified
Attachment #8798040 - Flags: review?(dao+bmo)
Component: Layout: Form Controls → XUL Widgets
Product: Core → Toolkit
(In reply to Neil Deakin from comment #2)
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=fa4a010a70ab

With this build, should not lose focus on the first option when hover over the second option.

See https://dl.dropboxusercontent.com/u/95157096/85f61cf7/y2lxtpaogs.mp4
That's the correct behaviour.
Comment on attachment 8798040 [details] [diff] [review]
Add styles for disabled menuitems in menulists

This isn't quite right for keyboard usage though so let me fix this.
Attachment #8798040 - Flags: review?(dao+bmo)
(In reply to Neil Deakin from comment #5)
> That's the correct behaviour.

With non-e10s mode this does not happen.
I took a more detailed look at how menulists behave on Windows, and it looks like a native WPF combobox does in fact skip over disabled items, which is different than regular menus and the way IE11 behave.

So this patch changes to use that behaviour, similar to non-e10s selects, but should leave menus as is, and the behaviour on non-Windows unchanged.
Attachment #8798847 - Flags: review?(ksteuber)
Comment on attachment 8798847 [details] [diff] [review]
Skip disabled menuitems

Review of attachment 8798847 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me.
Attachment #8798847 - Flags: review?(ksteuber) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/c7a5e02ed8f48197c6d0cdfee5122d472321d8c3
Bug 1305362, skip disabled menuitems in menulists on all platforms, r=ksteuber
https://hg.mozilla.org/mozilla-central/rev/c7a5e02ed8f4
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: