Bug 212079 - [GTK] Drag-and-drop does not work under flatpak
Summary: [GTK] Drag-and-drop does not work under flatpak
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Georges Basile Stavracas Neto
URL:
Keywords:
Depends on:
Blocks: Flatpak
  Show dependency treegraph
 
Reported: 2020-05-19 09:00 PDT by Michael Catanzaro
Modified: 2024-03-11 09:12 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2020-05-19 09:00:28 PDT
Drag-and-drop does not work under flatpak, we need to add support for the FileTransfer portal: https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.portal.FileTransfer
Comment 1 Michael Catanzaro 2021-06-30 08:12:38 PDT
Our bubblewrap sandbox seems fine. This is only a problem for flatpak.
Comment 2 Patrick Griffis 2021-06-30 10:43:26 PDT
GTK4 uses the FileTransfer portal I believe. Might at least become easier for us then.
Comment 3 Kdwk 2023-02-24 06:24:25 PST
As of WebKitGTK 2.39.9, Epiphany 44.beta-37-g930d407b4+, this bug can still be observed. The website simply doesn't receive anything and thinks the file is empty.
Comment 4 Kdwk 2023-09-25 01:19:26 PDT
This issue appears to be fixed in Gnome Web 45.0/ WebKitGTK 2.42.0 and also in other WebKitGTK-based apps
Comment 5 Michael Catanzaro 2023-09-25 05:20:05 PDT
It's still broken for me.
Comment 6 Kdwk 2023-09-25 05:53:10 PDT
Whoops. Looks like I reported the wrong version. It should be Epiphany Technology Preview 45.0-9-gfd75062d8+/ WebKitGTK 2.42.0.
Comment 7 Kdwk 2023-09-25 05:55:11 PDT
Ah. Looks like I spoke too soon. That works because I gave it access to filesystem=home when I was debugging something :(
Comment 8 Michael Catanzaro 2023-12-07 09:55:33 PST
Sure looks like drag and drop works fine here in today's Ephy Tech Preview. And it's probably expected, because:

(In reply to Patrick Griffis from comment #2)
> GTK4 uses the FileTransfer portal I believe. Might at least become easier
> for us then.

Kdwk, it sounds like a few months ago you decided that something was still not working correctly. Can you provide more details please? It sounds like the general case, at least, is fixed.
Comment 9 Kdwk 2023-12-07 18:52:36 PST
This still does not work. The file received by the website is 0 bytes unless the Flatpak has filesystem=home or whichever folder the file comes from
Comment 10 Georges Basile Stavracas Neto 2024-03-07 04:43:26 PST
Pull request: https://github.com/WebKit/WebKit/pull/25575
Comment 11 EWS 2024-03-11 09:12:49 PDT
Committed 275908@main (ff20e457cb9c): <https://commits.webkit.org/275908@main>

Reviewed commits have been landed. Closing PR #25575 and removing active labels.