<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>212079</bug_id>
          
          <creation_ts>2020-05-19 09:00:28 -0700</creation_ts>
          <short_desc>[GTK] Drag-and-drop does not work under flatpak</short_desc>
          <delta_ts>2024-03-11 09:12:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=192748</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=180813</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=265857</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>218121</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Georges Basile Stavracas Neto">feaneron</assigned_to>
          <cc>abrarsl2002</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>kdwkleung</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pgriffis</cc>
    
    <cc>sonny</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1654013</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-05-19 09:00:28 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773749</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-06-30 08:12:38 -0700</bug_when>
    <thetext>Our bubblewrap sandbox seems fine. This is only a problem for flatpak.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773809</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Griffis">pgriffis</who>
    <bug_when>2021-06-30 10:43:26 -0700</bug_when>
    <thetext>GTK4 uses the FileTransfer portal I believe. Might at least become easier for us then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1936501</commentid>
    <comment_count>3</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2023-02-24 06:24:25 -0800</bug_when>
    <thetext>As of WebKitGTK 2.39.9, Epiphany 44.beta-37-g930d407b4+, this bug can still be observed. The website simply doesn&apos;t receive anything and thinks the file is empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979750</commentid>
    <comment_count>4</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2023-09-25 01:19:26 -0700</bug_when>
    <thetext>This issue appears to be fixed in Gnome Web 45.0/ WebKitGTK 2.42.0 and also in other WebKitGTK-based apps</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979771</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-09-25 05:20:05 -0700</bug_when>
    <thetext>It&apos;s still broken for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979775</commentid>
    <comment_count>6</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2023-09-25 05:53:10 -0700</bug_when>
    <thetext>Whoops. Looks like I reported the wrong version. It should be Epiphany Technology Preview 45.0-9-gfd75062d8+/ WebKitGTK 2.42.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979776</commentid>
    <comment_count>7</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2023-09-25 05:55:11 -0700</bug_when>
    <thetext>Ah. Looks like I spoke too soon. That works because I gave it access to filesystem=home when I was debugging something :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997687</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-12-07 09:55:33 -0800</bug_when>
    <thetext>Sure looks like drag and drop works fine here in today&apos;s Ephy Tech Preview. And it&apos;s probably expected, because:

(In reply to Patrick Griffis from comment #2)
&gt; GTK4 uses the FileTransfer portal I believe. Might at least become easier
&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997877</commentid>
    <comment_count>9</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2023-12-07 18:52:36 -0800</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019329</commentid>
    <comment_count>10</comment_count>
    <who name="Georges Basile Stavracas Neto">feaneron</who>
    <bug_when>2024-03-07 04:43:26 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/25575</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020134</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-11 09:12:49 -0700</bug_when>
    <thetext>Committed 275908@main (ff20e457cb9c): &lt;https://commits.webkit.org/275908@main&gt;

Reviewed commits have been landed. Closing PR #25575 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>