[KDE] Gmail - File drag and drop broke on KDE/Linux , 126.0.2->129.0.2
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
People
(Reporter: metal450, Assigned: stransky)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
1.13 MB,
image/gif
|
Details | |
56.62 KB,
text/plain
|
Details | |
55.20 KB,
text/plain
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr128+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Steps to reproduce:
- On KDE, open Firefox 126.0.2
- Go to GMail
- Compose a new e-mail
- Drag a file from the KDE desktop or Dolphin to the e-mail. It will upload & attach the file, as expected (and as in all prior versions of Firefox)
- Update to Firefox 129.0.2
- Repeat the same. It no longer attaches the file - instead, it just inserts the text of the path of the file (i.e. "file:///home/username/Desktop/somefile.jpg)
The same is true of other sites - i.e. can no longer drag files into Facebook chat conversations, etc.
Actual results:
Described in steps
Expected results:
Described in steps
Comment 1•6 months ago
|
||
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.
![]() |
||
Updated•6 months ago
|
Assignee | ||
Comment 2•6 months ago
|
||
Can you use mozregression tool to find broken commit?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Use_Mozregression_tool
Thanks!
5:56.50 INFO: Narrowed integration regression window from [aba3d5bd, f061d37c] (3 builds) to [068001f3, f061d37c] (2 builds) (~1 steps left)
5:56.50 INFO: No more integration revisions, bisection finished.
5:56.50 INFO: Last good revision: 068001f3181654a5663191fc437ab74f19ab3f7f
5:56.50 INFO: First bad revision: f061d37ca7aea8d05d976908e376e649257f2151
5:56.50 INFO: Pushlog:
https://hg.mozilla.org/releases/mozilla-release/pushloghtml?fromchange=068001f3181654a5663191fc437ab74f19ab3f7f&tochange=f061d37ca7aea8d05d976908e376e649257f2151
Assignee | ||
Comment 4•6 months ago
|
||
Looks like there are lot of D&D changes in that range.
Please attach your about:support page.
Thanks.
Assignee | ||
Updated•6 months ago
|
Quite a bit on that page - are there any particular sections you're interested in? I prefer to review any logs/content like that for privacy reasons, would be quicker to send just the relevant sections if possible.
Assignee | ||
Comment 6•6 months ago
|
||
Okay, please try to create a screencast of the issue:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Create_screenshot/screencast_for_a_bug_report
Thanks.
Attached. First I show the broken behavior in the current version of Firefox; then I show the correct behavior in Brave (which reflects how Firefox worked before the broken update).
Assignee | ||
Comment 8•6 months ago
|
||
It works for me in Gnome/Wayland/Firefox 130.0. May be KDE specific.
Assignee | ||
Comment 9•6 months ago
|
||
Please run Firefox on terminal with MOZ_LOG="WidgetDrag:5" env variable, reproduce the issue and attach the log here. Run for instance:
MOZ_LOG="WidgetDrag:5" firefox > log.txt 2>&1
and attach log.txt file.
Thanks.
Assignee | ||
Updated•6 months ago
|
Reporter | ||
Comment 10•6 months ago
|
||
I'm also using x11, not Wayland.
Attached
Reporter | ||
Comment 11•5 months ago
|
||
Still broken on 130.0.1
Comment 12•3 months ago
|
||
Still facing this on firefox 133.0. Using Kubuntu 22.04 with X11 desktop backend.
Assignee | ||
Comment 15•3 months ago
|
||
This may be the bug:
[Parent 154475: Main Thread]: D/WidgetDrag nsWindow::OnDragDataReceived
[Parent 154475: Main Thread]: D/WidgetDrag [D 2] nsDragService::TargetDataReceived(7fc5d06a69e0) MIME application/vnd.portal.filetransfer mWaitingForDragDataRequests 0
[Parent 154475: Main Thread]: D/WidgetDrag [D 2] TargetDataReceived(): plain data, MIME application/vnd.portal.filetransfer len = 19
[Parent 154475: Main Thread]: D/WidgetDrag [D 1] application/vnd.portal.filetransfer received
[Parent 154475: Main Thread]: D/WidgetDrag DragData::Export() MIME application/vnd.portal.filetransfer index 0
[Parent 154475, Main Thread] WARNING: g_strv_length: assertion 'str_array != NULL' failed: 'glib warning', file /build/firefox-NUtzHF/firefox-129.0.2+build1/toolkit/xre/nsSigHandlers.cpp:187
(firefox:154475): GLib-CRITICAL **: 16:12:46.657: g_strv_length: assertion 'str_array != NULL' failed
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Comment 16•3 months ago
|
||
Can you please re-test with latest nightly?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries
I can't reproduce it with Fedora 41 / KDE / X11.
Thanks.
Assignee | ||
Comment 18•3 months ago
|
||
Thanks for testing. I'd need fresh logs for it.
Please run Firefox on terminal with MOZ_LOG="WidgetDrag:5" env variable, reproduce the issue and attach the log here. Run for instance:
MOZ_LOG="WidgetDrag:5" firefox > log.txt 2>&1
and attach log.txt file.
Thanks.
Reporter | ||
Comment 19•3 months ago
|
||
Reporter | ||
Comment 20•3 months ago
|
||
Attached
Assignee | ||
Comment 21•3 months ago
|
||
Thanks. Please attach about:support page.
I suspect Bug 1908196 may fix this one, let's re-test when it lands.
Assignee | ||
Comment 22•3 months ago
|
||
According to the log you use old Gtk3 version where gtk_targets_include_uri() doesn't include portal MIME types.
Assignee | ||
Comment 23•3 months ago
|
||
Updated•3 months ago
|
Comment 24•3 months ago
|
||
Reporter | ||
Comment 25•3 months ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #21)
Thanks. Please attach about:support page.
I suspect Bug 1908196 may fix this one, let's re-test when it lands.
Easier to just re-test when it lands, lmk when ready + I will
Comment 26•3 months ago
|
||
bugherder |
Assignee | ||
Comment 27•3 months ago
|
||
Landed so please test.
Thanks.
Reporter | ||
Comment 28•3 months ago
|
||
confirmed, fixed at last.
Any idea how long these nightlies end up taking to make it into production?
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Comment 30•3 months ago
|
||
Updated•3 months ago
|
Assignee | ||
Comment 31•3 months ago
|
||
Comment on attachment 9442385 [details]
Bug 1914742 [Linux] Don't use gtk_targets_include_uri() to check URI types for 134.0 r?emilio
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Firefox fails to D&D files or file link if running on old Gtk3 version where gtk_targets_include_uri() doesn't support portal filetypes.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): We only replace Gtk3 function with our correct check.
- String changes made/needed:
- Is Android affected?: Yes
Comment 32•3 months ago
|
||
uplift |
Updated•3 months ago
|
Updated•3 months ago
|
Assignee | ||
Comment 34•2 months ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #33)
Do we want this on ESR128 also?
Yes, I think so.
Assignee | ||
Comment 35•2 months ago
|
||
Comment on attachment 9442385 [details]
Bug 1914742 [Linux] Don't use gtk_targets_include_uri() to check URI types for 134.0 r?emilio
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Firefox fails to D&D files or file link if running on old Gtk3 version where gtk_targets_include_uri() doesn't support portal filetypes.
- User impact if declined:
- Fix Landed on Version:
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): We only replace Gtk3 function with our correct check.
Comment 36•2 months ago
|
||
Comment on attachment 9442385 [details]
Bug 1914742 [Linux] Don't use gtk_targets_include_uri() to check URI types for 134.0 r?emilio
Approved for 128.6esr.
Updated•2 months ago
|
Comment 37•2 months ago
|
||
uplift |
Description
•