Bug 221525 - [GTK] Arbitrary xdg-desktop-portal warning breaks CI & unit tests
Summary: [GTK] Arbitrary xdg-desktop-portal warning breaks CI & unit tests
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2021-02-06 23:17 PST by Michael Gratton
Modified: 2021-02-06 23:17 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gratton 2021-02-06 23:17:54 PST
Since enabling the sandbox, the following warning is printed when calling `webkit_web_view_load_html`:

> ** (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'm not sure how this is relevant?

Similar to bug 220620, but not urgent since I'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 "test-client" received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_WARNING, format=<optimised out>, 
    args=<optimised out>) 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=<optimised out>, args=<optimised out>) at ../../../glib/gmessages.c:1377
#1  0x00007ffff749de13 in g_log
    (log_domain=<optimised out>, log_level=<optimised out>, format=<optimised out>)
    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&, 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&&) ()
    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&, 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&, WebKit::WebPageProxy::ProcessLaunchReason) ()
    at ../Source/WebKit/UIProcess/WebPageProxy.cpp:819
#10 0x00007ffff23f4ff9 in WebKit::WebPageProxy::loadData(IPC::DataReference const&, WTF::String const&, WTF::String const&, WTF::String const&, 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 "<html><body class=\"\">\n<div id=\"geary-body\" dir=\"auto\"><p>para</p><div><br /></div><div><span id=\"cursormarker\"></span><br /></div></div>\n<div id=\"geary-signature\" class=\"geary-no-display\" dir=\"auto\"><"..., 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 "<p>para</p>", quote=0x55555593d3fa "", 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