Closed Bug 1856497 Opened 1 year ago Closed 1 year ago

Focus movement between elements with the Tab key gets stuck somewhere. Once that happens, the Shift+Tab key also don't work at all.

Categories

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

Firefox 119
Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
120 Branch
Accessibility Severity s2
Tracking Status
firefox-esr115 --- verified
firefox118 --- unaffected
firefox119 + verified
firefox120 + verified

People

(Reporter: alice0775, Assigned: sefeng)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: access, nightly-community, regression)

Attachments

(2 files, 2 obsolete files)

[Tracking Requested - why for this release]: Broken [Tab] key navigation

Steps to reproduce:

  1. Open https://syosetu.com/site/about/
  2. Press and repeat [Tab] key

Steps to reproduce(with the attached zip file):

  1. Unzip the attached zip to local file system
  2. Drag and drop the unzipped 小説家になろうについて サイト案内 小説家になろう.htm from File Explorer into Tab content area.
  3. Press and repeat [Tab] key

Actual Results:
Focus movement between elements with the Tab key gets stuck.
Once that happens, the Shift+Tab key also do not work at all.

Expected Results:
Focus movement between elements by tab key should cycle infinitely.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=7b7144975b319945642a90653847a06d03f111b7&tochange=e43370e4259f61e0c264dbcef8b45e2862b3c5e8

:emilio, since you are the author of the regressor, bug 1847929, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)
Summary: Focus movement between elements with the Tab key gets stuck somewhere. Once that happens, the Shift+Tab key doesn't work at all. → Focus movement between elements with the Tab key gets stuck somewhere. Once that happens, the Shift+Tab key also don't work at all.
Attached file reduced testcase.html (obsolete) —

Comment on attachment 9356283 [details]
reduced testcase.html

(edit 2023-10-12)
The attached testcase of comment#2 seems fixed by bug 1856514.
But str of comment#0 is still reproduced.

Attachment #9356288 - Attachment is obsolete: true
See Also: → 1856514

FWIW,
Setting dom.input_events.security.minNumTicks to 0 also solve this issue.

Depends on: 1856514
See Also: 1856514

That indicates that bug 1830820 is probably the root cause. My patch was probably overriding that for OOP iframes. Sean, maybe we just care about the top level page for the minNumTicks stuff?

Flags: needinfo?(emilio) → needinfo?(sefeng)
Regressed by: CVE-2023-5721
No longer regressed by: 1847929
See Also: → 1847929

In my opinion, we care both the top level and the nested documents. Though looks like this is not the problem.

It's likely that fixing bug 1856514 can also fix this. I'll do some testing.

The bug is marked as tracked for firefox119 (beta) and tracked for firefox120 (nightly). However, the bug still isn't assigned.

:hsinyi, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(htsai)
Assignee: nobody → sefeng
Flags: needinfo?(htsai)
Flags: needinfo?(sefeng)

S2, because this seems like it could trap keyboard-only users and this looks like a recent regression.

Severity: -- → S2

:sefeng we are in the last week of beta for Fx119. Will this land soon and can you add an uplift request when ready?

Flags: needinfo?(sefeng)
Accessibility Severity: --- → s2
See Also: → 1858232

Setting Fx119 to Fixed, Bug 1858232 was uplifted to beta

Attachment #9356283 - Attachment is obsolete: true
Blocks: 1858725
Pushed by sefeng@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03951bd1d784 Allow user input events to bypass the delay handling check if this is a non-visible document r=smaug
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

Reproduced with Fx 120.0a1 (2023-10-02) on Windows 10.
Verified fixed with Fx 120.a01 (2023-10-12) (treeherder build) and Fx 119.0b9 (treeherder build) on Windows 10.

Status: RESOLVED → VERIFIED

Comment on attachment 9356735 [details]
Bug 1856497 - Allow user input events to bypass the delay handling check if this is a non-visible document r=smaug

Beta/Release Uplift Approval Request

  • User impact if declined: User input may not be handled if dom.input_events.security.minNumTicks is not 0
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce:
  1. Set dom.input_events.security.minNumTicks to 3
  2. Use the STR in this bug.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The change itself is trivial
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(sefeng)
Attachment #9356735 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9356735 [details]
Bug 1856497 - Allow user input events to bypass the delay handling check if this is a non-visible document r=smaug

Approved for 119.0 RC1

Attachment #9356735 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]
See Also: → 1858680

Verified fixed with Fx 119.0 and Fx 115.4.0esr on Windows 10.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: