Closed Bug 1628476 Opened 5 years ago Closed 1 year ago

Add a "press tab to highlight each item on a web page" checkbox preference UI

Categories

(Firefox :: Keyboard Navigation, enhancement)

All
macOS
enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Accessibility Severity s3
Tracking Status
relnote-firefox --- 117+
firefox77 --- wontfix
firefox117 --- fixed

People

(Reporter: asa, Assigned: morgan)

References

Details

(Keywords: access, papercut)

Attachments

(1 file)

The macOS System pref for "Use keyboard navigation to move focus between controls" is unchecked by default, meaning Mac only allows tabbing between text fields and pop-up menus by default. Firefox (mostly) respects this preference and so excludes links when navigating web content in Firefox with the Tab key.

This default is not great for people trying to use web pages with the keyboard only. To get your tab key to move though all interactive controls in web pages, including links, you have to go to System Preferences -> Keyboard -> Shortcuts and check the box for "Use keyboard navigation to move focus between controls". Firefox must be restarted to pick up changes to this pref (ugh!). Most keyboard users don't know about this System pref and think Firefox's behavior is simply broken.

In Safari there is an off by default pref that overrides the System pref at Safari -> Safari Preferences -> Advanced -> "Press Tab to highlight each option on a web page". (When not checked, Safari can highlight additional items on web pages by holding Option when hitting the Tab key. When the preference in Safari is checked, the Option key is then reversed and used to limit highlighting to just text boxes and pop-up menus.)

Firefox should implement a similar preference to what Safari has, a checkbox that overrides the macOS System preference. Firefox should default this preference to checked so that the Tab key navigates all interactive controls on a web page. Users who wish to have the limited tabbing behavior can uncheck the Firefox preference.

A follow-up bug could be to implement Safari's Option key toggling but that should not block this bug.

Steps to reproduce:

  1. With a default macOS environment, open Firefox and load a web page with links and form controls.
  2. Use the tab key to navigate the web page.

Results:
Firefox only navigates between the form controls on the page.

Expected Results:
Firefox navigates all interactive controls on the page including links.

This preference would be macOS-only and probably live in the "Browsing" section of the "General" Preferences.

Whiteboard: [access-p2]

Updating the Accessibility Team's impact assessment to conform with the new triage guidelines. See https://wiki.mozilla.org/Accessibility/Triage for descriptions of these whiteboard flags.

Whiteboard: [access-p2] → [access-s3]

Adjusting summary to make this easier to find in searches.

Summary: Add a "press tab to highlight each item on a web page" checkbox preference UI and default it to checked → Add a "press tab to highlight each item on a web page" checkbox preference UI and default it to checked (AKA change default Mac tab key behavior)
See Also: → 396534
Keywords: papercut
Severity: normal → S3
See Also: → 1823769
Duplicate of this bug: 1823769
Accessibility Severity: --- → s3
Whiteboard: [access-s3]

FWIW setting accessibility.tabfocus to 4 or 7 seems to support the behaviour we're after (links and controls focusable, despite the OS setting)

Here's a simplified test case: data:text/html,hello world<br><button>hello</button><br><a href="google.com">world</a><br><select><option>hello</option><option>world</option></select>

Assignee: nobody → mreschenberg
Status: NEW → ASSIGNED
Summary: Add a "press tab to highlight each item on a web page" checkbox preference UI and default it to checked (AKA change default Mac tab key behavior) → Add a "press tab to highlight each item on a web page" checkbox preference UI
Blocks: 1843669
Pushed by mreschenberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/88c664a821cb Add keyboard navigation pref to allow focus mode changes on macOS r=Jamie,fluent-reviewers,settings-reviewers,flod,mconley

Backed out for causing multiple bc failures.

Flags: needinfo?(mreschenberg)
Flags: needinfo?(mreschenberg)
Pushed by mreschenberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9082cd99a3e6 Add keyboard navigation pref to allow focus mode changes on macOS r=Jamie,fluent-reviewers,settings-reviewers,flod,mconley
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch

Should we add this to the Fx117 relnotes? Please add the relnote-firefox? nomination if yes!

Flags: needinfo?(mreschenberg)

Release Note Request (optional, but appreciated)
[Why is this notable]: macOS users now have the ability to control their focus settings in firefox independent of their system focus settings -- the system setting is difficult to find and understand, and we hope this pref is easier/more visibile to users. this also opens the door to standardizing focus behaviour across operating systems, see folliow up bug about defaulting this to "on"
[Affects Firefox for Android]: No
[Suggested wording]: macOS users can now control the tabability of controls and links via about:preferences
[Links (documentation, blog post, etc)]:

relnote-firefox: --- → ?
Flags: needinfo?(mreschenberg)
See Also: → 1844213

Added to the Fx117 relnotes.

QA Whiteboard: [qa-117b-p2]
See Also: → 1893100
Blocks: 1036966
See Also: 1823769
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: