Source: glib2.0
Version: 2.84.0-2
Severity: normal
X-Debbugs-Cc: ian@wienand.org
Dear Maintainer,
I can no longer upload files from Firefox 136.0.2 from a smb share I
have mounted, or open them in Gimp (this is the two things I've found).
I can enter the upload dialog, browse the file and see it, but when I
upload it gives "The file does not have read permissions" in a modal
(I'm sure that's a spurious error) and in the journal logs I can see
---
Mar 24 15:14:30 framework firefox-bin[18770]: GFileInfo created without standard::content-type
M
Mar 24 15:14:30 framework firefox-bin[18770]: GFileInfo created without standard::content-type
Firefox 136.0.2
Out of interest I also tried with GTK_USE_PORTAL=1 and I see the "new"
dialog box then, but when I try to upload it just dies with no other
details. In the logs there is
---
[Parent 22691, Main Thread] WARNING: invalid cast from 'GtkFileChooserNative' to 'GtkWindow': 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
(firefox-beta:22691): GLib-GObject-CRITICAL **: 15:18:41.707: invalid cast from 'GtkFileChooserNative' to 'GtkWindow'
[Parent 22691, Main Thread] WARNING: gtk_message_dialog_new: assertion 'parent == NULL || GTK_IS_WINDOW (parent)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
---
I think that might be a separate issue, just adding for completness ...
On Mon, 24 Mar 2025 at 15:31:24 +1100, Ian Wienand wrote:
Mar 24 15:14:30 framework firefox-bin[18770]: GFileInfo created without standard::content-type
It might help to upgrade gvfs to version 1.57.2-2 from unstable (you
didn't include the versions of related packages in your bug report, so I can't tell whether you already have that). gvfs 1.57.2-2 fixes #1101025
which could have an impact here.
Or, Firefox or some component used by Firefox might be creating a
GFileInfo without asking for it to contain the standard::content-type
field, and then assuming that it will contain that information anyway.
If that's the case then it's a programming error in Firefox (or in some component used by it).
Firefox 136.0.2
Is this the firefox package from unstable, or is it a third-party
package from outside Debian?
Out of interest I also tried with GTK_USE_PORTAL=1 and I see the "new" >dialog box then, but when I try to upload it just dies with no other >details. In the logs there is
---
[Parent 22691, Main Thread] WARNING: invalid cast from 'GtkFileChooserNative' to 'GtkWindow': 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
(firefox-beta:22691): GLib-GObject-CRITICAL **: 15:18:41.707: invalid cast from 'GtkFileChooserNative' to 'GtkWindow'
[Parent 22691, Main Thread] WARNING: gtk_message_dialog_new: assertion 'parent == NULL || GTK_IS_WINDOW (parent)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
---
I think that might be a separate issue, just adding for completness ...
This is a separate issue, and it is a Firefox or library bug: it's
asking for a GtkFileChooser and assuming that the result will be a
GtkWindow, but that is not an API guarantee (and in particular it is not
true when using the portal-based file chooser dialogs).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 481 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:06:47 |
Calls: | 9,538 |
Calls today: | 6 |
Files: | 13,653 |
Messages: | 6,139,041 |
Posted today: | 1 |