Escape/cmd-./return keys do not work to dismiss "Clear Recent History" dialog
Categories
(Toolkit :: XUL Widgets, defect)
Tracking
()
People
(Reporter: yoasif, Assigned: bgrins)
References
(Regression)
Details
(Keywords: access, regression, Whiteboard: [access-p2])
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
pascalc
:
approval-mozilla-release+
|
Details |
From https://www.reddit.com/r/firefox/comments/f4fy3q/clear_recent_history_keyboard_regression_on_macos/
Steps to reproduce:
- Do Command-shift-delete
- Press any one of
escape
,command-.
orreturn
What happens:
Nothing.
Expected result:
escape
, command-.
should exit the dialog (Cancel).
return
should "Clear Now"
11:40.21 INFO: Narrowed inbound regression window from [1fb1ca98, e183cbb4] (3 builds) to [88b25807, e183cbb4] (2 builds) (~1 steps left)
11:40.21 INFO: No more inbound revisions, bisection finished.
11:40.21 INFO: Last good revision: 88b25807638231dcf403d8f0b597fc770f1d24a4
11:40.21 INFO: First bad revision: e183cbb4983cfb3aecf97ab18fad916b91f89e7e
11:40.21 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=88b25807638231dcf403d8f0b597fc770f1d24a4&tochange=e183cbb4983cfb3aecf97ab18fad916b91f89e7e
Reporter | ||
Comment 1•5 years ago
|
||
[Tracking Requested - why for this release]: Regression in a user facing feature.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
I'm afraid that I'm no longer on the Browser Architecture team, and I don't currently have time to work on this.
I did take a few minutes to look into this, and I cannot reproduce the issue. escape
and return
both work for me. I can't test command-.
, because I'm on a Windows machine and I have no Command key. Perhaps this is an OS-specific issue?
Comment 4•5 years ago
|
||
Brian, can you recommend somebody else to look into this? I'd do it myself but I'm not on Mac either.
Comment 5•5 years ago
|
||
Setting to fix-optional for 73, but we should definitely try to get this fixed for 74 as this presumably affects screen reader users disproportionately.
Comment 6•5 years ago
|
||
Because this is mac-only and we don't actually have screen reader support on Mac, setting accessibility priority to 2.
Assignee | ||
Comment 7•5 years ago
|
||
Seems like these events aren't firing: https://searchfox.org/mozilla-central/rev/5a10be606f2d76ef22f1f44565749490de991d35/toolkit/content/widgets/dialog.js#33-55
Assignee | ||
Comment 8•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
bugherder |
Comment 13•5 years ago
|
||
Brian, given the number of duplicates, do you think this is a good candidate for an uplift in RC? Thanks
Assignee | ||
Comment 14•5 years ago
|
||
(In reply to Pascal Chevrel:pascalc from comment #13)
Brian, given the number of duplicates, do you think this is a good candidate for an uplift in RC? Thanks
Sorry for the delay. It should be safe to uplift but I went ahead and flagged for qe-verify to get additional verification.
Assignee | ||
Comment 15•5 years ago
|
||
Comment on attachment 9128043 [details]
Bug 1615854 - Listen to keypress events on the document instead of the dialog element to fix keyboard handling for dialogs in osx
Beta/Release Uplift Approval Request
- User impact if declined: Keyboard shortcuts to close some dialogs on Mac don't work (for instance, "Clear Recent History")
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See Comment 0. Could also use a test on Windows to make sure no behavior has changed there (though it was only broken on Mac previously).
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): It's a small frontend change only affecting UI inside of dialog widgets.
It's changing the keypress event listener target from the dialog element itself to the document. It's possible this would cause a problem if there's some other code that was expecting the dialog to be the target, since pre-Bug 1585482 it was also listening on the dialog element, but it seems relatively unlikely if not detected in manual testing.
- String changes made/needed:
Comment 16•5 years ago
|
||
I can reproduce the bug and using mozregression can confirm that the bug got fixed by the patch in this bug.
Comment 17•5 years ago
|
||
Comment on attachment 9128043 [details]
Bug 1615854 - Listen to keypress events on the document instead of the dialog element to fix keyboard handling for dialogs in osx
Several reports for a UI bug on macOS, fix is simple and verified on Nightly, taking the patch for 74RC2, thanks.
Comment 18•5 years ago
|
||
bugherder uplift |
Comment 19•5 years ago
|
||
I have reproduced this in Nightly v75.0a1 from 2020-02-26, Beta v74.0b9 and Beta v74.0 (Release Candidate), and verified the fix in Nightly v75.0a1 from 2020-03-04 and Firefox Release Candidate v74.0 (taken from https://treeherder.mozilla.org/#/jobs?repo=mozilla-release&revision=07eaadc8461984cadfcd835f6ad27b5fc5596305&searchStr=mac%2Cos%2Cx%2Ccross%2Ccompiled%2Cshippable&selectedJob=291506243)
I deem this bug verified!
Description
•