Focusing the filename in GTK's portal file dialog triggers search

Bug #1981148 reported by ts
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Confirmed
Undecided
Unassigned
lubuntu-meta (Ubuntu)
Confirmed
Undecided
Unassigned
ubuntu-mate-meta (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm still wondering why my Ubuntu forces the snap version of Firefox onto me, despite apt-pinning, but OK, I guess being frustrated about that would be a lost cause.

In any case:
The snap version of Firefox that my Ubuntu has decided to install despite my apt-pinning has a bug in the saving dialog.

I've recorded a video and left it online, here:
https://anonfiles.com/X4ec15w7y3/simplescreenrecorder-2022-07-10_15.57.54_mkv

Following protocol:

1) $ lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04

2) $ apt-cache policy firefox
firefox:
  Installed: 1:1snap1-0ubuntu2
  Candidate: 1:1snap1-0ubuntu2
  Version table:
 *** 1:1snap1-0ubuntu2 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     102.0.1+build1-0ubuntu0.18.04.1 999
        500 http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu bionic/main amd64 Packages
        500 https://ppa.launchpadcontent.net/ubuntu-mozilla-security/ppa/ubuntu bionic/main amd64 Packages

(note how Ubuntu doesn't give a damn about the pin priority, but whatever)

3) I'm trying to save a downloaded document.
 3.1) Firefox opens the save dialogue.
 3.2) I would like to enter a filename into the filename bar

4) following 3.1:
 4.2) When I try to change the filename, the focus immediately jumps to the search bar and the dialogue for some reason tries to search for the entered letters on the drive. I can click back to focus on the filename bar, sometimes I can manage to type one or two letters, before the focus jumps, again.

This does not happen with the version I installed using apt, but which repeatedly gets removed by the Ubuntu updating process, to install the snap version, which sadly never seems to work without problems.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: firefox 1:1snap1-0ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-40.43-generic 5.15.35
Uname: Linux 5.15.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Sun Jul 10 16:00:53 2022
InstallationDate: Installed on 2022-03-07 (125 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220228)
Snap.Changes: no changes found
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
ts (toto-23) wrote :
Revision history for this message
Graham Knight (gjkathome) wrote :

I have this problem also.

$ lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04

$ apt-cache policy firefox
firefox:
  Installed: (none)
  Candidate: 1:1snap1-0ubuntu2
  Version table:
     1:1snap1-0ubuntu2 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

I am using the Cinnamon desktop. If I switch to the Gnome desktop the problem does not arise.

Revision history for this message
Olivier Tilloy (osomon) wrote :

This looks very much like https://forum.snapcraft.io/t/firefox-unable-to-edit-filename-to-save-as/31081. Can you please file an issue upstream (https://github.com/lxqt/xdg-desktop-portal-lxqt/issues), and share the link to it here?

Revision history for this message
Olivier Tilloy (osomon) wrote :
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
Revision history for this message
Olivier Tilloy (osomon) wrote :

I added bug tasks to lubuntu-meta and ubuntu-mate-meta, because it was reported that this is xdg-desktop-portal-gtk misbehaving in these desktop environments, whereas it works fine in GNOME.

For Lubuntu, there is a xdg-desktop-portal-lxqt implementation that appears to solve the problem, so it's just a matter of getting it installed on users' machines.

I'm not sure what the solution might be for MATE.

summary: - saving dialog focus skips to search bar
+ Focusing the filename in GTK's portal file dialog triggers search
tags: added: snap
Revision history for this message
Anibal Sanchez (anibal-sanchez) wrote :

I can confirm that the issue also affects Chrome and Chromium: https://bugs.launchpad.net/ubuntu/+source/ubuntu-unity-meta/+bug/1972130

Reports also mention Unity, it seems to be a system-wide issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lubuntu-meta (Ubuntu):
status: New → Confirmed
Changed in ubuntu-mate-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Bogdan (bbogdan-i) wrote :

This bug affects me as well:

Ubuntu
Release 22.04 LTS (Jammy Jellyfish) 64-bit
Kernel Linux 5.15.0-47-generic x86_64

Hardware

Memory: 15.5 GiB
Processor: Intel Core i5-3330S CPU @ 2.70 GHz x4
Graphics: Mesa Intel HD Graphics 2500 (IVB GT1)

Am wondering if this is being looked into as its confirmed as a bug. My workaround is to save with original filename the use file manager to rename file after the fact.

Revision history for this message
Alex Robinson (alex-launchpad-tranzoa) wrote :

On an Ubuntu 22.04 (newly updated from 18.04) box I got Firefox and Chromium browser back to using the good, system SaveAs dialog box instead of the horrid (((search box focus grabber and almost impossible to change file name from the default))) dialog box by doing this:

`sudo snap install snapd`

This version of snapd, 2.38.3, apparently overrides the apt-installed snapd version 2.38.

That the snap version of snapd wasn't installed ("`snap list`" did not list it) was the glaring difference between the bad box and a laptop that did not have the problem.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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