<?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>192748</bug_id>
          
          <creation_ts>2018-12-16 23:53:51 -0800</creation_ts>
          <short_desc>[GTK] Printing does not work when running inside Flatpak</short_desc>
          <delta_ts>2024-04-18 07:41:05 -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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=180813</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=212079</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="Adrian Perez">aperez</reporter>
          <assigned_to name="Georges Basile Stavracas Neto">feaneron</assigned_to>
          <cc>braden</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>cgarcia</cc>
    
    <cc>leonardougerage</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mcrha</cc>
    
    <cc>mike</cc>
    
    <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1488400</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-12-16 23:53:51 -0800</bug_when>
    <thetext>SSIA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1488401</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-12-17 00:00:32 -0800</bug_when>
    <thetext>Related: https://bugs.webkit.org/show_bug.cgi?id=79226#c8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1522748</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Gratton">mike</who>
    <bug_when>2019-03-29 22:00:41 -0700</bug_when>
    <thetext>Dupe: https://gitlab.gnome.org/GNOME/geary/issues/348</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700991</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-10-23 05:58:38 -0700</bug_when>
    <thetext>It has mysteriously begun to work for me....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1720170</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Gratton">mike</who>
    <bug_when>2021-01-17 01:53:22 -0800</bug_when>
    <thetext>Per https://github.com/flathub/org.gnome.Geary/issues/42 a workaround for this is adding explicit RW access to `~/Downloads` or similar, so at least people can print to PDF and print that using Evince or whatever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773745</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-06-30 08:05:15 -0700</bug_when>
    <thetext>Let&apos;s track this in bug #202363.

*** This bug has been marked as a duplicate of bug 202363 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901847</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-09-28 12:28:35 -0700</bug_when>
    <thetext>Reopening since bug #202363 was resolved without fixing flatpak.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901849</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-09-28 12:28:43 -0700</bug_when>
    <thetext>*** Bug 244332 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003760</commentid>
    <comment_count>8</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2024-01-08 23:12:00 -0800</bug_when>
    <thetext>I can &quot;Print to file&quot; under Flatpak, but the file chooser does not let me pick host-system directories, while running the same dialog as gtk3 wants makes it work properly. Steps, in Evolution:

1) go to the Mail view and select a mail message
2) press Ctrl+P and there select &quot;Print to File&quot;
3) click the button with the file name, file chooser dialog opens

Actual Result:
No host-system directories shown

Expected:
Host-system directories are shown

4) go to the Contacts view and select a contact there
5) press Ctrl+P  and there select &quot;Print to File&quot;
6) click the button with the file name, file chooser dialog opens

Actual and Expected Result:
Host-system directories are shown

That makes me believe something in the WebKitGTK is broken, even though the GtkPrintUnixDialog is used in the both above cases.

One thing to note, at least to what I see, the gtk+ uses GtkFileChooserDialog for here, while it may rather use GtkFileChooserNative, to work under Flatpak sandbox, I guess. It&apos;s weird to see bad and then correct directories in the dialog. I mean, I&apos;d say the problem is on the gtk3 side, but if calling the dialog in the evo process works, then the problem is possibly somewhere in the WebKitGTK.

Does the WebKitGTK&apos;s print dialog run in the WebKitWebProcess, thus possibly under the WebKitGTK&apos;s own sandbox?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025572</commentid>
    <comment_count>9</comment_count>
    <who name="Georges Basile Stavracas Neto">feaneron</who>
    <bug_when>2024-04-02 17:55:00 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26765</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029453</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-04-18 07:41:02 -0700</bug_when>
    <thetext>Committed 277671@main (fd47d132791d): &lt;https://commits.webkit.org/277671@main&gt;

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

    </bug>

</bugzilla>