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
Our bubblewrap sandbox seems fine. This is only a problem for flatpak.
GTK4 uses the FileTransfer portal I believe. Might at least become easier for us then.
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.
This issue appears to be fixed in Gnome Web 45.0/ WebKitGTK 2.42.0 and also in other WebKitGTK-based apps
It's still broken for me.
Whoops. Looks like I reported the wrong version. It should be Epiphany Technology Preview 45.0-9-gfd75062d8+/ WebKitGTK 2.42.0.
Ah. Looks like I spoke too soon. That works because I gave it access to filesystem=home when I was debugging something :(
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.
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
Pull request: https://github.com/WebKit/WebKit/pull/25575
Committed 275908@main (ff20e457cb9c): <https://commits.webkit.org/275908@main> Reviewed commits have been landed. Closing PR #25575 and removing active labels.