Open Bug 1898434 Opened 1 month ago Updated 1 month ago

[snap] Firefox fails to save files to Samba volumes on Ubuntu

Categories

(Core :: Widget: Gtk, defect)

Firefox 126
Desktop
Linux
defect

Tracking

()

People

(Reporter: Dexter, Unassigned)

References

(Blocks 1 open bug)

Details

Attempting to save a file in Firefox 126 (release, snap, canonical-002 distribution id) to a Samba volume on Ubuntu silently fails with no visible error. A closer inspection to the browser console reveals the following, which might be related:

NS_ERROR_MALFORMED_URI: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIFilePicker.file] HelperAppDlg.sys.mjs:344
promptForSaveToFileAsync resource://gre/modules/HelperAppDlg.sys.mjs:344

The offending line is this one.

Performing the same operation on Windows results in correct writes.

Apparently the GetFIle file getter is invoking GetFileURL that tries to parse mFileURL, and that fails. So mFileURL is likely an invalid one.
https://searchfox.org/mozilla-central/rev/a44891c52387ca4bd7c35b50f0d335f3980ef36a/widget/gtk/nsFilePicker.cpp#370,387

Since the filepicker implementation is per platform, moving this to widget::gtk and blocking snap in case it's involved.

Blocks: snap
Component: File Handling → Widget: Gtk
Product: Firefox → Core
Summary: Firefox fails to save files to Samba volumes on Ubuntu → [snap] Firefox fails to save files to Samba volumes on Ubuntu

could it be bug 1773624 ?

You need to log in before you can comment on or make changes to this bug.