Perform visibility checks on HTML elements for accesskeys in the chrome
Categories
(Core :: DOM: Events, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr128 | --- | unaffected |
| firefox134 | --- | unaffected |
| firefox135 | --- | unaffected |
| firefox136 | --- | wontfix |
| firefox137 | --- | fix-optional |
People
(Reporter: hecerinc, Assigned: akulyk)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [recomp])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Steps to reproduce:
I have a consistent repro in build 20250118091314. The previous build 20250117215754 does not exhibit the behavior.
To repro:
- Install build 20250118091314 of the nightly channel.
- Run firefox.exe -p and create a new profile.
- Open https://addons.mozilla.org/en-US/firefox/addon/temporary-containers/
- Install the "Temporary Containers" extension
- Press Alt+C on the keyboard
(By default, Alt+C is the shortcut registered by the extension to open a new temporary container tab. )
See attached about:support.
Other info
I tested the Alt+X shortcut for the extension (which opens a new tab of the same container number), and this works as expected. This shortcut is not enabled by default, but can be enabled through the Advanced options in the Options of the extension.
The extension has not been updated recently.
Actual results:
Pressing Alt+C once does not do anything.
Additionally, if you long press Alt+C, then after some number of seconds a suite of new temporary container tabs are opened all at once.
Expected results:
A new temporary container tab should have opened (within approx. the same response time as Ctrl+T for opening a non-containerized tab).
Additionally, the bug is still present in today's build (20250130092924)
Comment 2•11 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•11 months ago
|
||
Hello,
I reproduced the issue on the latest Nightly (136.0a1/20250202210625) under Windows 10 and Ubuntu 24.04 LTS.
Pressing Alt+C does nothing i.e. it does not open a temporary container tab as expected. Holding Alt+C pressed for a short time will open, with several seconds delay, a suite of new temporary container tabs at once.
The issue is not reproducible on the latest Beta (135.0/20250130195129) or Release (134.0.2/20250120135430).
Regression range:
2025-02-03T12:10:43.292000: DEBUG : Found commit message:
Bug 1942186 - Set automatic fluent support for accesskey in moz-button r=reusable-components-reviewers,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D234610
2025-02-03T12:10:43.292000: DEBUG : Did not find a branch, checking all integration branches
2025-02-03T12:10:43.294000: INFO : The bisection is done.
2025-02-03T12:10:43.301000: INFO : Stopped
Pushlog:
Comment 4•11 months ago
|
||
:akulyk, since you are the author of the regressor, bug 1942186, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 5•11 months ago
|
||
Set release status flags based on info from the regressing bug 1942186
As my patch is set as a regressor for this bug, I did some research.
First of all, the issue with Alt+C shortcut is relevant not only for extension "Temporary Containers", for example Match Case checkbox in the findbar has the same accesskey and it has the same issue.
My patch did not create this issue, but it revealed the issue that we have with accesskeys at the moment.
Alt+C shortcut isn't working, because there's a button in the tabgroup menu panel with the same accesskey. When we check if the element is an accesskey target, we do visibility checks only for XUL elements. But have to do the same check for the chrome elements (like that button in the tabgroup menu panel).
Comment 7•11 months ago
|
||
Comment 8•11 months ago
|
||
Here's a sample patch (and try build) that enables the visibility checks for chrome documents, this resolved the issue with the extension for me (Alt+C opens the temporary container tab and if you've opened the tab group panel then Alt+C cancels the operation)
This change does not affect Alt+C toggling the Match Case option if the findbar is open, as Anna pointed out.
As we begin to add more HTML elements to the chrome document in panels that are always present but hidden this seems like a situation that will continue to show up. Fortunately in this case it's just the Cancel button that was being triggered, but I could imagine a similar issue happening with a control that performs some action in the future, which probably isn't ideal. For example putting an accesskey on the ETP toggle would trigger click handlers on it even if its panel is closed. Fortunately it appears as though the listeners aren't active at that point, but that might not always be the case. In the inspector I can see that the accesskey changes the toggle's pressed state, but no actions are performed and its state is reset when the panel opens.
@masayuki does this seem like a reasonable solution? If so is there some testing I should add for this change?
Comment 9•11 months ago
|
||
Yeah, looks like it's reasonable, although I'm not 100% sure because I've not touched the case yet. And yes, it's really reasonable to check whether the accesskey works and does not work as you expected. I guess using the "Match Case" checkbox in the findbar within a mochitest-browser-chrome is reasonable.
Comment 10•11 months ago
|
||
(Moving to Core :: DOM: Events because the patch touches dom/events/EventStateManager.cpp)
Comment 11•11 months ago
|
||
:peterv could this be triaged for severity? (pinging as triage owner)
Comment 12•11 months ago
|
||
I think this should be S3 or lower because Alt - foo should not be used as shortcut keys for avoiding to conflict with access keys.
Comment 13•11 months ago
|
||
:masayuki, there are only two beta builds left in the cycle for Fx136
Is there a plan to land a fix and request an uplift this week? Or, will it be in a later release?
Comment 14•11 months ago
|
||
I think that later is fine because it's unusual key combination for shortcut keys.
| Assignee | ||
Comment 16•10 months ago
|
||
Looks like Alt+C shortcut issue brought up concerns in [https://bugzilla.mozilla.org/show_bug.cgi?id=1952611](Bug 1952611 - Alt+C no longer toggles the “Match Case” checkbox, only focuses it).
Is it better to back out [https://bugzilla.mozilla.org/show_bug.cgi?id=1942186](Set automatic fluent support for accesskey in moz-button) patch that revealed this issue until it's fixed?
Comment 17•10 months ago
|
||
I'm not sure what's changed in the patch because I don't have enough knowledge around the code.
Updated•10 months ago
|
Updated•8 months ago
|
Comment 19•4 months ago
|
||
Since the regressor was backed out I'm going to repurpose this bug for what the underlying issue we need solved is. We just ran into the problem that the regressor was intended to fix in bug 1987682.
Updated•4 months ago
|
Description
•