<?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>221525</bug_id>
          
          <creation_ts>2021-02-06 23:17:54 -0800</creation_ts>
          <short_desc>[GTK] Arbitrary xdg-desktop-portal warning breaks CI &amp; unit tests</short_desc>
          <delta_ts>2021-02-06 23:17:54 -0800</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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Gratton">mike</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1726457</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Gratton">mike</who>
    <bug_when>2021-02-06 23:17:54 -0800</bug_when>
    <thetext>Since enabling the sandbox, the following warning is printed when calling `webkit_web_view_load_html`:

&gt; ** (test-client:392336): WARNING **: 18:07:13.338: GApplication is required for xdg-desktop-portal access in the WebKit sandbox. Actions that require xdg-desktop-portal will be broken.

Since this (and other tests) are simply loading text into a web view, I&apos;m not sure how this is relevant?

Similar to bug 220620, but not urgent since I&apos;ll be disabling the sandbox again due to bug 202363.

Example stack trace:

** (test-client:392336): WARNING **: 18:07:13.338: GApplication is required for xdg-desktop-portal access in the WebKit sandbox. Actions that require xdg-desktop-portal will be broken.

Thread 1 &quot;test-client&quot; received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_WARNING, format=&lt;optimised out&gt;, 
    args=&lt;optimised out&gt;) at ../../../glib/gmessages.c:1377
1377	../../../glib/gmessages.c: No such file or directory.
(gdb) 
(gdb) 
(gdb) bt
#0  g_logv
    (log_domain=0x0, log_level=G_LOG_LEVEL_WARNING, format=&lt;optimised out&gt;, args=&lt;optimised out&gt;) at ../../../glib/gmessages.c:1377
#1  0x00007ffff749de13 in g_log
    (log_domain=&lt;optimised out&gt;, log_level=&lt;optimised out&gt;, format=&lt;optimised out&gt;)
    at ../../../glib/gmessages.c:1415
#2  0x00007ffff24e942b in createFlatpakInfo ()
    at ../Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:703
#3  WebKit::bubblewrapSpawn(_GSubprocessLauncher*, WebKit::ProcessLauncher::LaunchOptions const&amp;, char**, _GError**) ()
    at ../Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:793
#4  0x00007ffff24eb0bf in WebKit::ProcessLauncher::launchProcess() ()
    at ../Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:203
#5  0x00007ffff2365403 in WebKit::ProcessLauncher::create(WebKit::ProcessLauncher::Client*, WebKit::ProcessLauncher::LaunchOptions&amp;&amp;) ()
    at ../Source/WebKit/UIProcess/Launcher/ProcessLauncher.h:103
#6  WebKit::AuxiliaryProcessProxy::connect() ()
    at ../Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp:101
#7  0x00007ffff23d1598 in WebKit::WebProcessProxy::create(WebKit::WebProcessPool&amp;, WebKit::WebsiteDataStore*, WebKit::WebProcessProxy::IsPrewarmed, WebKit::WebProcessProxy::ShouldLaunchProcess) () at ../Source/WebKit/UIProcess/WebProcessProxy.cpp:143
#8  0x00007ffff23f0a8e in WebKit::WebProcessPool::createNewWebProcess(WebKit::WebsiteDataStore*, WebKit::WebProcessProxy::IsPrewarmed) ()
    at ../Source/WebKit/UIProcess/WebProcessPool.cpp:905
#9  0x00007ffff23f15da in WebKit::WebPageProxy::launchProcess(WebCore::RegistrableDomain const&amp;, WebKit::WebPageProxy::ProcessLaunchReason) ()
    at ../Source/WebKit/UIProcess/WebPageProxy.cpp:819
#10 0x00007ffff23f4ff9 in WebKit::WebPageProxy::loadData(IPC::DataReference const&amp;, WTF::String const&amp;, WTF::String const&amp;, WTF::String const&amp;, API::Object*, WebCore::ShouldOpenExternalURLsPolicy) () at ../Source/WebKit/UIProcess/WebPageProxy.cpp:1402
#11 0x00007ffff2490473 in webkit_web_view_load_html() ()
    at ../Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:3030
#12 0x00007ffff798019a in components_web_view_load_html
    (self=0x555555ada980 [ComposerWebView], body=0x55555716a040 &quot;&lt;html&gt;&lt;body class=\&quot;\&quot;&gt;\n&lt;div id=\&quot;geary-body\&quot; dir=\&quot;auto\&quot;&gt;&lt;p&gt;para&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span id=\&quot;cursormarker\&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;\n&lt;div id=\&quot;geary-signature\&quot; class=\&quot;geary-no-display\&quot; dir=\&quot;auto\&quot;&gt;&lt;&quot;..., base_uri=0x0) at ../src/client/components/components-web-view.vala:387
#13 0x00007ffff79a72dd in composer_web_view_load_html
    (self=0x555555ada980 [ComposerWebView], body=0x55555716a2d0 &quot;&lt;p&gt;para&lt;/p&gt;&quot;, quote=0x55555593d3fa &quot;&quot;, top_posting=0, body_complete=0)
    at ../src/client/composer/composer-web-view.vala:198
#14 0x00005555555c5fd5 in composer_web_view_test_real_load_body_fixture</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>