TabDialogBox doesn't restore focus when returning from another tab
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
People
(Reporter: Jamie, Assigned: pbz)
References
Details
(Keywords: access)
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
STR:
- Open two tabs.
- In the second tab, open any web page.
- Open the new print modal.
- Press control+1 to switch to the first tab.
- Press control+2 to switch back to the second tab (the one with the print modal open).
- Expected: Focus should go to the printer picker.
- Actual: Focus goes to limbo (the top level browser window).
This applies to any TabDialogBox. For example, you see the same bug if you do this in the browser console instead of opening the print modal:
Services.prompt.alertBC(gBrowser.selectedBrowser.browsingContext, Ci.nsIPrompt.MODAL_TYPE_TAB, "Hi", "Hi")
Comment 1•4 years ago
|
||
I think this would need the block at https://searchfox.org/mozilla-central/rev/19c23d725f27d0989e4a60f36d64004cebb39736/browser/base/content/tabbrowser.js#1287-1298 expanding to also cover TabDialogBox. Paul, is this something you can take on?
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
(In reply to :Gijs (he/him) from comment #1)
I think this would need the block at https://searchfox.org/mozilla-central/rev/19c23d725f27d0989e4a60f36d64004cebb39736/browser/base/content/tabbrowser.js#1287-1298 expanding to also cover TabDialogBox. Paul, is this something you can take on?
Thanks! Yes that sounds like a good idea. Perhaps we could extend TabDialogBox
with a focus method so the caller doesn't have to know what's on top.
Assignee | ||
Comment 4•4 years ago
|
||
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d0b7071a6946 Focus TabDialogBox top dialog when switching tabs. r=Gijs
Comment 6•4 years ago
|
||
bugherder |
Assignee | ||
Comment 7•4 years ago
|
||
Comment on attachment 9172424 [details]
Bug 1660951 - Focus TabDialogBox top dialog when switching tabs. r=gijs!
Beta/Release Uplift Approval Request
- User impact if declined: Accessibility: It's difficult for users to interact with or close the print dialog by keyboard after switching tabs.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Medium
- Why is the change risky/not risky? (and alternatives if risky): Small patch. Medium risk because it could potentially break the tab switch focus behavior including restoring URL bar focus.
- String changes made/needed:
Comment 8•4 years ago
|
||
Comment on attachment 9172424 [details]
Bug 1660951 - Focus TabDialogBox top dialog when switching tabs. r=gijs!
Approved for 81.0b5.
Comment 9•4 years ago
|
||
bugherder uplift |
Updated•4 years ago
|
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Confirming this issue as verified fixed on macOS 10.15, Ubuntu 18.04 and Windows 10x64. Verified using 82.0a1 (2020-09-09) and 81.0b8.
Updated•11 months ago
|
Description
•