<?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>202880</bug_id>
          
          <creation_ts>2019-10-12 02:14:04 -0700</creation_ts>
          <short_desc>[WPE][GTK] Bubblewrap sandbox should not attempt to bind empty paths</short_desc>
          <delta_ts>2020-08-10 05:58:45 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=1781631</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Walklin">ryan</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pgriffis</cc>
    
    <cc>rishi.is</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1579413</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Walklin">ryan</who>
    <bug_when>2019-10-12 02:14:04 -0700</bug_when>
    <thetext>The version of Epiphany packaged with Fedora 31 (3.34.1)/WebKitGTK is unable to load webpages. The URL bar will accept a URL but stall with the progress indicator showing ~10%. Nothing is rendered. No useful debug output in console other than

bwrap: Can&apos;t create file at /.flatpak-info: Read-only file system

The nightly version installed from flatpak at 

https://nightly.gnome.org/repo/appstream/org.gnome.Epiphany.Devel.flatpakref

works without issues.

Interestingly, keyboard shortcuts such as Ctrl-L also fail to work even when the window is focused, so I suspect this is a Wayland specific issue. I note that the same install works fine using a Wayland gnome-shell session, so seems Sway-specific. 

Happy to post a WAYLAND_DEBUG log if that&apos;s helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579423</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-10-12 06:56:31 -0700</bug_when>
    <thetext>(In reply to Ryan Walklin from comment #0)
&gt; bwrap: Can&apos;t create file at /.flatpak-info: Read-only file system</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579425</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Walklin">ryan</who>
    <bug_when>2019-10-12 07:38:08 -0700</bug_when>
    <thetext>I&apos;ve done a bit more experimenting. Opening Epiphany from the .desktop file in gnome-shell works fine under both Wayland and X sessions, however if I try to call epiphany from the command-line (as I&apos;m doing with Sway using an fzf-based launcher) I can reproduce the same behaviour under gnome-shell, ie Epiphany launches but will not load pages.

Attempting to use the .desktop file from the command line using gtk-launch with both Sway and gnome-shell also fails. 

I note the error message contains a root path (/.flatpak-info), might this be an issue with the runtime directory not set properly when loading from the command line?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579465</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Griffis">pgriffis</who>
    <bug_when>2019-10-12 17:24:40 -0700</bug_when>
    <thetext>(In reply to Ryan Walklin from comment #2)
&gt; I&apos;ve done a bit more experimenting. Opening Epiphany from the .desktop file
&gt; in gnome-shell works fine under both Wayland and X sessions, however if I
&gt; try to call epiphany from the command-line (as I&apos;m doing with Sway using an
&gt; fzf-based launcher) I can reproduce the same behaviour under gnome-shell, ie
&gt; Epiphany launches but will not load pages.
&gt; 
&gt; Attempting to use the .desktop file from the command line using gtk-launch
&gt; with both Sway and gnome-shell also fails. 
&gt; 
&gt; I note the error message contains a root path (/.flatpak-info), might this
&gt; be an issue with the runtime directory not set properly when loading from
&gt; the command line?

`bwrap` would be creating the file in its own new tmpfs root. I can&apos;t imagine why it would fail.

Trying to reproduce locally on GNOME-Shell (Fedora 30) and I cannot. The source of `gtk-launch` is very simple also and doesn&apos;t seem to do anything crazy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668565</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-07-03 07:35:30 -0700</bug_when>
    <thetext>*** Bug 213925 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668566</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-07-03 07:35:50 -0700</bug_when>
    <thetext>If an empty path is set in LD_LIBRARY_PATH (e.g. /foo::/bar), we wind up passing --ro-bind-try   --ro-bind-try to bwrap, where the second --ro-bind-try is treated as the source path to mount, and the next flag we pass gets treated as the destination path. The web process crashes with this confusing error:

bwrap: Can&apos;t create file at /.flatpak-info: Read-only file system</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668567</commentid>
    <comment_count>6</comment_count>
      <attachid>403458</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-07-03 07:39:29 -0700</bug_when>
    <thetext>Created attachment 403458
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668579</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-07-03 08:09:43 -0700</bug_when>
    <thetext>Committed r263899: &lt;https://trac.webkit.org/changeset/263899&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 403458.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668601</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-07-03 11:11:14 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #5)
&gt; If an empty path is set in LD_LIBRARY_PATH

Ryan, can you confirm if this was indeed your problem? I was able to reproduce this issue when running with LD_LIBRARY_PATH=::</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668867</commentid>
    <comment_count>9</comment_count>
    <who name="Ryan Walklin">ryan</who>
    <bug_when>2020-07-04 21:31:21 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #8)
&gt; Ryan, can you confirm if this was indeed your problem?

So it was, unsetting LD_LIBRARY_PATH allowed epiphany to load fine from the Fedora package. My .bashrc was setting LD_LIBRARY_PATH=&quot;/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH&quot;, so ended up with an empty path at the end.

Thanks for the fix!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1679044</commentid>
    <comment_count>10</comment_count>
    <who name="Debarshi Ray">rishi.is</who>
    <bug_when>2020-08-10 05:58:45 -0700</bug_when>
    <thetext>Wow! Thanks for tracking it down, Michael.

I also had a trailing colon in my LD_LIBRARY_PATH and was hitting this same bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>403458</attachid>
            <date>2020-07-03 07:39:29 -0700</date>
            <delta_ts>2020-07-03 08:09:43 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-202880-20200703093928.patch</filename>
            <type>text/plain</type>
            <size>1740</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjYzNjU5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IDJkYmFlZTI2OTQ0NzRhZTVh
MTc2OWJjZjljMjY4ZDc2MTI0ZmM0MjguLjliZTYxOTVlZTgwOTIyOTUxY2Y3ZjMwZGU0MjNkM2Y5
NzNk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