File dialog in snap firefox does not have keyboard focus

Bug #1972983 reported by vanadium
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Confirmed
Undecided
Unassigned
xdg-desktop-portal-gnome (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce the issue.

After first log in into Ubuntu Desktop 22.04

1. Launch Firefox and open a website (e.g. www.ubuntu.com)
2. Hit Ctrl+S to open the Save file dialog.
3. Type "Ubuntu" to replace the default file name ("Enterprise Open Source and Linux | Ubuntu.html"). Hit Enter. It works the first time round.
4. Hit Ctrl+S to open the Save file dialog again.
5. Type "Ubuntu - 2" to replace the default file name ("Enterprise Open Source and Linux | Ubuntu.html"). This time, your typing fails: the file dialog is not in focus.

Expected behavior anytime when opening a File dialog: the file dialog should have keyboard focus.

Observed behavior: the file dialog does not have focus, except the very first time in the session.

Same observations also for File Open dialogs.

Tags: jammy focus
tags: added: jammy
tags: added: focus
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Changed in mutter (Ubuntu):
status: New → Confirmed
Revision history for this message
Illia Bobyr (illia-bobyr) wrote :

I've observed a similar issue, since the Ubuntu 22.04 upgrade.
Though, I can not confirm 100% that the issue happened exactly on the updated date.
It might have been caused by one of the Firefox upgrades. I am currently on version 100.

For me, the focus in the save dialog constantly switches to the file list area.
It makes it almost impossible to type the file name.
When I type one character, this character is inserted into the file name edit field.
But then the focus changes to the file list area. And the next character I type is used as a file list filter command.

affects: firefox (Ubuntu) → xdg-desktop-portal-gnome (Ubuntu)
Revision history for this message
Riczxc (riczxc) wrote :

Since the chromium-browser snap package also uses xdg-desktop-portal-gnome, it is also affected by the same bug.

Revision history for this message
Michalis Kamburelis (michalis-kambi) wrote :

From my experience, this also affects open dialog, and causes further trouble because the keyboard operations actually go to the browser window underneath.

Faulty scenario:

- I want to attach a file on a form (in a GitHub https://github.com/ issue), so it opens a file dialog.

- I try to copy-paste the path into the file dialog, using Ctrl+L followed by Ctrl+V and Enter.

- But all of these shortcuts (Ctrl+L, Ctrl+V, Enter) actually go to the browser window underneath the dialog box (even though the file open dialog is shown in the front). So instead of changing path in the GTK dialog box, I accidentally change the URL in Firefox address bar, and change the page to something else.

- To make things absurd, I can try opening more "file open" and "file save" dialogs and land in a weird UI with multiple file dialogs waiting for my input. Multiple dialogs are shown, in some input is blocked by others.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1949340, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.