Pressing the SHIFT+TAB hotkey does not retain the focus inside the reader view panels
Categories
(Toolkit :: Reader Mode, defect, P3)
Tracking
()
People
(Reporter: danibodea, Assigned: sandy.chu.40, NeedInfo)
References
(Blocks 1 open bug)
Details
(Keywords: access, good-first-bug, Whiteboard: [fidefe-quality-foundation?])
Attachments
(1 file)
Note
- When the user navigates inside a reader view panel using TAB, the focus is retained inside the panel, but navigating backward using SHIFT+TAB beyond the first element results in moving the focus out of the panel.
Found in
- Nightly v130.0a1
Affected versions
- Nightly v130.0a1
Tested platforms
- Affected platforms: all
- Unaffected platforms: none
Steps to reproduce
- Load an article that supports reader view.
- Enable Reader view.
- Using keyboard navigation open any of the panels (Text and layout, Theme, Read aloud)
- Press SHIFT-TAB key multiple times (beyond the first element).
Expected result
- The focus is moved to the end of the panel.
Actual result
- The focus is moved out of the panel.
Regression range
- It is not a regression.
Additional information
- This part was missed from the implementation of the behavior in bug 1907280.
Updated•3 months ago
|
Thank you for catching it, Daniel!
This is an access-S3
issue per accessibility triage guidelines, because it creates an inconsiderable focus order making it difficult for keyboard-only users to navigate and use the feature.
Comment 2•3 months ago
|
||
The severity field for this bug is set to S4. However, the accessibility severity is higher, .
:Gijs, could you consider increasing the severity?
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Updated•3 months ago
|
Labeling this as a good-first bug for a contributor with some experience, or a good-second-bug, The fix is pretty straightforward but involves a couple different files and needs unit tests.
For the narrate menu:
- Modify the keydown event listener to remove
!evt.shiftKey
, since we want to listen for Shift+Tab as well. - In _handleFocus(), the current logic should be used if
!evt.shiftKey
. Ifevt.shiftKey
is true, check if event.target is.narrate-skip-previous
if narrateDropdown has the.speaking
class, or.narrate-start-stop
if it doesn't have the.speaking
class. For either condition,.select-toggle
should receive focus.
For the text and layout menu:
- In _handleTextLayoutFocus(), attach a keydown event listener to
.text-size-minus-button
for Shift + Tab. When#about-reader-advanced-layout
has an open attribute (meaning the advanced section is expanded),.text-layout-reset-button
should receive focus. Otherwise,.accordion-header
should receive focus.
For the color theme menu:
- In _handleThemeFocus(), attach a keydown event listener to
#tabs-deck-button-fxtheme
for Shift + Tab. The theme button <label> that has a checked attribute (currently selected theme) should receive focus. - Attach another event listener to
#tabs-deck-button-customtheme
, where.custom-colors-reset-button
should receive focus.
Refer to the patch for Bug 1907280 to see where to add unit tests.
Assignee | ||
Comment 4•2 months ago
|
||
Hello, I'd like to be assigned to this issue
Comment 5•2 months ago
|
||
(In reply to sandy.chu.40 from comment #4)
Hello, I'd like to be assigned to this issue
Thanks for your interest! We typically assign tickets for good-first-bugs when the initial version of the patch is up. :-)
Assignee | ||
Comment 6•2 months ago
|
||
Updated•2 months ago
|
Comment 9•2 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Comment 10•2 months ago
|
||
The patch landed in nightly and beta is affected.
:sandy.chu.40, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox131
towontfix
.
For more information, please visit BugBot documentation.
Updated•1 month ago
|
Reporter | ||
Comment 12•6 days ago
|
||
The fix works, but it uncovers a new regression: bug 1927443. This regression has a bigger impact than the issue fixed.
@sandy.chu.40: Can you look into it?
Reporter | ||
Comment 13•2 days ago
|
||
I can confirm this fix in Fx132 branch. Considering the regression mentioned in the comment above, I will be closing this report.
Description
•