Bug 212079
| Summary: | [GTK] Drag-and-drop does not work under flatpak | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | WebKitGTK | Assignee: | Georges Basile Stavracas Neto <feaneron> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | abrarsl2002, bugs-noreply, kdwkleung, mcatanzaro, pgriffis, sonny |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=192748 https://bugs.webkit.org/show_bug.cgi?id=180813 https://bugs.webkit.org/show_bug.cgi?id=265857 |
||
| Bug Depends on: | |||
| Bug Blocks: | 218121 | ||
Michael Catanzaro
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Michael Catanzaro
Our bubblewrap sandbox seems fine. This is only a problem for flatpak.
Patrick Griffis
GTK4 uses the FileTransfer portal I believe. Might at least become easier for us then.
Kdwk
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.
Kdwk
This issue appears to be fixed in Gnome Web 45.0/ WebKitGTK 2.42.0 and also in other WebKitGTK-based apps
Michael Catanzaro
It's still broken for me.
Kdwk
Whoops. Looks like I reported the wrong version. It should be Epiphany Technology Preview 45.0-9-gfd75062d8+/ WebKitGTK 2.42.0.
Kdwk
Ah. Looks like I spoke too soon. That works because I gave it access to filesystem=home when I was debugging something :(
Michael Catanzaro
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.
Kdwk
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
Georges Basile Stavracas Neto
Pull request: https://github.com/WebKit/WebKit/pull/25575
EWS
Committed 275908@main (ff20e457cb9c): <https://commits.webkit.org/275908@main>
Reviewed commits have been landed. Closing PR #25575 and removing active labels.