Open Bug 1878548 Opened 2 years ago Updated 14 hours ago

Button to open the directory of a downloaded file in the download panel opens the directory twice

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 122
defect

Tracking

()

UNCONFIRMED

People

(Reporter: julien.falque, Unassigned, NeedInfo)

Details

(Whiteboard: gtk-severity-sweep-2026-10)

Attachments

(3 files, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0

Steps to reproduce:

On Arch Linux with Gnome desktop (Wayland):

  1. Download a file (it doesn't matter if you store it somewhere or simply open it)
  2. Once it is downloaded, open the download panel
  3. Click on the button that opens the directory that contains the file

Actual results:

The directory is open twice, in two distinct windows of the file manager.

Clicking the button again immediatly opens only one new window. But after a while, a new click will trigger the bug again.

Expected results:

Only one window should appear.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Flags: needinfo?(julien.falque)
Priority: -- → P3
Attachment #9383930 - Attachment is obsolete: true
Flags: needinfo?(julien.falque)

Thanks. Please attach your about:support page.

Flags: needinfo?(julien.falque)

Also can you run Firefox on terminal with MOZ_LOG="WidgetPopup:5" env variable, only once click on the button that opens the directory that contains the file (so it's opened twice) and attach the log here.

The log should reveal if Firefox gets two button down mouse events or if it's a bug in Firefox.

Thanks.

Attached file run.txt —
Flags: needinfo?(julien.falque)

Thanks. Please attach your about:support page.

This looks significant:
[Parent 9482: Main Thread]: D/WidgetPopup [78a2e6a84600]: Button 1 press
[Parent 9482: Main Thread]: D/WidgetPopup [78a2e6a84600]: Button 1 release

Failed to query file manager via ShowItems: Le délai d’attente est dépassé

Looks like you're use DBus file portal (from snap?) but it fails to respond in time so regular file dialog is opened. But the DBus one popped out after it.

Flags: needinfo?(julien.falque)
Attached file about:support —
Flags: needinfo?(julien.falque)

Thanks. It looks like broken OS config. Can you run on terminal any other gnome app (like gedit) and try to fire file dialog and check if there's any 'Failed to query file manager' messages on terminal?
Thanks.

Flags: needinfo?(julien.falque)

I've tested with LANG=en_US.UTF-8 gedit and got nothing on the terminal when clicking on "Open" to show the file dialog.

Flags: needinfo?(julien.falque)

Can you try to set widget.use-xdg-desktop-portal.file-picker to 0 at about:config, restart browser and try again?
Thanks.

Flags: needinfo?(julien.falque)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #12)

Can you try to set widget.use-xdg-desktop-portal.file-picker to 0 at about:config, restart browser and try again?
Thanks.

Also please try latest binaries?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries
Thanks.

I've set widget.use-xdg-desktop-portal.file-picker to 0 and tried to reproduce the bug twice, looks good for now. But the bug is quite random so I need to test this more.

I already have the latest stable Firefox (124.0.2 as of today). I tried running nightly version but it failed to start with my user profile. It worked OK with a new profile but I would not have been able to tell whether the bug was solved in nightly or because I was not using my profile, so I didn't try to reproduce the bug further.

(In reply to Julien Falque from comment #14)

I already have the latest stable Firefox (124.0.2 as of today). I tried running nightly version but it failed to start with my user profile. It worked OK with a new profile but I would not have been able to tell whether the bug was solved in nightly or because I was not using my profile, so I didn't try to reproduce the bug further.

You may check Mozilla release binaries (https://www.mozilla.org/en-US/firefox/new/) instead of Nightly. It should work with your recent profile.

I've set widget.use-xdg-desktop-portal.file-picker to 0 and tried to reproduce the bug twice, looks good for now. But the bug is quite random so I need to test this more.

I just had the issue again with widget.use-xdg-desktop-portal.file-picker set to 0 so it looks like it doens't help. I'm on Firefox 125.0.1 now BTW.

(In reply to Julien Falque from comment #16)

I've set widget.use-xdg-desktop-portal.file-picker to 0 and tried to reproduce the bug twice, looks good for now. But the bug is quite random so I need to test this more.

I just had the issue again with widget.use-xdg-desktop-portal.file-picker set to 0 so it looks like it doens't help. I'm on Firefox 125.0.1 now BTW.

It looks like a bug in Gtk file dialog implementation.

Severity: -- → S3
Whiteboard: gtk-severity-sweep-2026-10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: