Accessible focus not fired after dismissing OS print dialog
Categories
(Core :: Disability Access APIs, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | verified |
People
(Reporter: Jamie, Assigned: markosborne, Mentored)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
(deleted),
patch
|
jimm
:
review+
surkov
:
feedback+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
text/x-phabricator-request
|
Details |
Reporter | ||
Comment 1•12 years ago
|
||
Updated•12 years ago
|
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Comment 9•12 years ago
|
||
Updated•12 years ago
|
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
Updated•12 years ago
|
Comment 13•12 years ago
|
||
Comment 15•11 years ago
|
||
Comment 17•11 years ago
|
||
Updated•11 years ago
|
Updated•11 years ago
|
Comment 18•11 years ago
|
||
Comment 19•11 years ago
|
||
Comment 20•10 years ago
|
||
Comment 21•9 years ago
|
||
Comment 23•5 years ago
|
||
This has been reported again on NVDA bug tracker here). Is there any chance for a fix? From an end user perspective this is quite annoying. Additionally previous patch got reverted due to the problems with Flash and it is now think of the past.
Comment 24•5 years ago
|
||
Any update?
This has yet again been reported on NVDA bug tracker (here).
Reporter | ||
Comment 25•5 years ago
|
||
Unfortunately, while no longer widespread, Flash is still supported and will be until 2020/2021. Regardless, we should try to fix this again or hack around it in the accessibility module if we can't; I agree it's super annoying.
Assignee | ||
Comment 26•5 years ago
|
||
Hi there. I'm new to Firefox dev, but do you mind if I have a look at this problem?
Comment 27•5 years ago
|
||
Not at all, go right ahead! :) Thank you for volunteering!
Assignee | ||
Comment 28•5 years ago
|
||
I've had a look (using VS2017 Enterprise) and the behaviour of the focus when coming back from an external dialogue is odd compared to Edge and Chrome. I am trying to identify specifically when focus goes to an external dialogue so that the element that last had the focus can be specially returned to rather than returning focus to the top layer, but not having too much luck yet. I'll keep tinkering.
Reporter | ||
Comment 29•5 years ago
|
||
Note that the patch in the attachments section above is worth looking at. While it probably won't apply cleanly now (code style changes among other bit-rot), I imagine the required fix will be pretty similar.
Assignee | ||
Comment 30•5 years ago
|
||
I think we might have addressed this bug. The patch from earlier was very helpful.
I tested successfully using NVDA and opening and closing a print dialog with https://codepen.io/antonpalinau/pen/MWWOoBJ
The focus returned to the print button after the dialog closed, and the down arrow then read out the next line.
The attached patch is based against the nightly build from 13 November. Is that going to be a problem?
Reporter | ||
Comment 31•5 years ago
|
||
Thanks very much. This looks pretty good. However the process for submitting code changed some time ago. We now use Phabricator for patch submission and code review. See this page for instructions:
https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html
You can set me (Jamie) as a reviewer. I'll need to add someone else from a different team for final review, as I don't have authority in this module of the code, but I will do an initial pass.
I noticed there are some code format issues here. Before you submit to Phabricator, you can automatically fix those with:
mach clang-format -c HEAD
Then amend the commit with any changes made.
Thanks again!
Assignee | ||
Comment 32•5 years ago
|
||
Interesting. I ran the following but no code was changed.
marko@mopc /c/mozilla-source/mozilla-central
$ ./mach clang-format -c HEAD
abort: unknown revision 'HEAD'!
marko@mopc /c/mozilla-source/mozilla-central
$ hg heads
changeset: 501607:b7641b3fb45e
tag: tip
parent: 501605:48a708577712
user: Mark Osborne <markosborne@pcblues.com>
date: Fri Nov 22 04:36:01 2019 +1100
summary: Focus on last focussed control after dialog closed.
marko@mopc /c/mozilla-source/mozilla-central
$ ./mach clang-format -c tip
marko@mopc /c/mozilla-source/mozilla-central
$ hg status
marko@mopc /c/mozilla-source/mozilla-central
$ ./mach clang-format -p widget/windows/nsWindow*
Processing 9 file(s)...
marko@mopc /c/mozilla-source/mozilla-central
$ hg status
marko@mopc /c/mozilla-source/mozilla-central
$
Reporter | ||
Comment 33•5 years ago
|
||
Ah, sorry about the HEAD thing; I use git here instead of hg, but that's obviously not the officially recommended config. :)
That's strange. You might also want to try:
mach lint --outgoing --fix
Failing that, the code review bot will pick up any issues when you submit to Phabricator, so no need for concern.
Assignee | ||
Comment 34•5 years ago
|
||
Assignee | ||
Comment 35•5 years ago
|
||
Hi there. Is my reply to your comment in the review visible to you?
Reporter | ||
Comment 36•5 years ago
|
||
The only comment I see from you is:
Hi there. Still trying to get lint and clang-format working. I think I have addressed the issues in the meantime, though :) Noticed a revision mentioned: 504148 - back out changes that broke eslint
Am I missing something?
Note that if you're making inline comments, you need to hit save draft on the inline comment, then submit to publish changes.
Comment 37•5 years ago
|
||
Comment 38•5 years ago
|
||
bugherder |
Reporter | ||
Comment 39•5 years ago
|
||
For some reason, this fixes the Print dialog but not the file chooser (Save As or Open) dialogs. I'm not sure why.
Assignee | ||
Comment 40•5 years ago
|
||
Should we open a new bug for the Save As and Open dialogs or re-open this one?
Reporter | ||
Comment 42•5 years ago
|
||
Adjusting summary because this only fixed the print dialog. Save and open dialogs now covered by bug 1606932.
Updated•5 years ago
|
Comment 43•5 years ago
|
||
Reproduced the initial issue using NVDA 2019.1 and Fx 70.0 (buildID 20191016161957) on Windows 10 x64.
Confirming the fix using Fx 74.0b5, build ID 20200218224219 under the same circumstances.
Description
•