Closed Bug 1610341 Opened 6 years ago Closed 2 years ago

A Link element with a tabindex of "0" can not be tabbed to on macOS

Categories

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

72 Branch
x86_64
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1036966
Tracking Status
firefox-esr68 --- affected
firefox72 --- affected
firefox73 --- affected
firefox74 --- affected
firefox88 --- affected
firefox89 --- affected
firefox90 --- affected

People

(Reporter: ali, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Tried to use an "A" element (link) with a tabindex of "0" to be user-focusable via keyboard "tabbing".

Actual results:

The tab item was skipped

Expected results:

The tab item should receive focus.

Here is a simple repro https://jeweled-need-xpq8sor86b.glitch.me/

This can also be previewed on https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex by changing the DIV to an A.

I am on 72.0.1 (64-bit) OSX 10.14.6. This works as expected on Chrome and Safari for me.

Hi ali,

Thanks for reporting this bug and for providing us with the information needed to try this on our end.

I was able to reproduce this on Mac OSX 10.13.6 using the following Firefox versions:

  • Nightly 74.0a1 (2020-01-24)
  • Beta 73.0b9
  • Release 72.0.2
  • ESR 8.4.2esr

I will add this issue to the Core: DOM: UI Events & Focus Handling component, hopefully, someone with more knowledge in this area will look over it.

Regards,
Virginia

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: UI Events & Focus Handling
Ever confirmed: true
Product: Firefox → Core

I cannot reproduce on Windows. I guess that it's related to the system settings on macOS.

Enn, do you know something about this?

Flags: needinfo?(enndeakin)
OS: Unspecified → macOS
Hardware: Unspecified → x86_64
Summary: A Link element with a tabindex of "0" can not be tabbed to → A Link element with a tabindex of "0" can not be tabbed to on macOS

Edgar has been investigating similar issues. CCed him to see if he also has thoughts.

Priority: -- → P3

Just came across the same problem. Here another little test case I had put together before digging into bugzilla: https://codepen.io/scheinercc/pen/bGqpWKL

Tested it in Safari and Chrome as well. Chrome tabs through links and buttons, while Safari does something for me rather unexpected and focuses the URL bar. From there it jumps to the last position of the cursor was at in the HTML box.

Yes, this is just another case of expecting the Mac tab navigation behaviour to be the same as Windows. To emulate the windows behaviour, use System Preferences -> Keyboard -> Shortcuts and check the 'keyboard navigation' related checkbox at the bottom.

Flags: needinfo?(enndeakin)

I had a look and it was already checked for me. (Should I renew the ni? ?)
I was wrong. I tested on two different machines. The one I tested earlier today with, had "the 'keyboard navigation' related checkbox at the bottom" not checked, just as Neil suggested. Turning it on makes Firefox behave similar to Chrome.

Interesting, but I'm not sure I follow! The MDN tabindex doc I linked in the initial report has

<div tabindex="0">Tabbable due to tabindex.</div>

And it works with the default OSX system preferences settings. Why would a div of tabindex 0 be focusable, yet a link wouldn't?

Is there any other issue (opened or closed) which contains more details on this?

Good point ali. I updated my example to include a div as well: https://codepen.io/scheinercc/pen/bGqpWKL
FYI, to test the difference, Firefox needs to be restarted each time after "Use keyboard navigation to move focus between controls" has been changed.

Severity: normal → S3
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1036966
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.