<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [GTK] Gtk windows should not appear on desktop when running API tests in Wayland"
href="https://bugs.webkit.org/show_bug.cgi?id=168197#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [GTK] Gtk windows should not appear on desktop when running API tests in Wayland"
href="https://bugs.webkit.org/show_bug.cgi?id=168197">bug 168197</a>
from <span class="vcard"><a class="email" href="mailto:clopez@igalia.com" title="Carlos Alberto Lopez Perez <clopez@igalia.com>"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=168197#c2">comment #2</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=168197#c1">comment #1</a>)
> > (In reply to <a href="show_bug.cgi?id=168197#c0">comment #0</a>)
> > > When running /webkit2/WebKitPrintOperation/custom-widget, a GtkWindow
> > > appears on my screen and I get to watch as the print dialog is opened and
> > > closed. This happens when running several other API tests too. It shouldn't.
> > >
> > > This is probably a Wayland-specific problem as I don't think I've ever seen
> > > this when using X.
> >
> > Are you passing --display-server=wayland to Tools/Scripts/run-gtk-tests ?
> > Then that is the expected behaviour (you see the window)
>
> No, I'm just running the tests manually (because run-gtk-tests doesn't
> support running individual tests and expects to use a build directory
> created by build-webkit, which I avoid except when required to run layout
> tests as that's incompatible with use by Epiphany),</span >
I think you are doing it wrong. The tests are not meant to be executed directly.
If there is some use case that prevents you to use the run-gtk-tests script, then we should improve the script rather than trying to find a way around it.
<span class="quote">> which works fine under
> X11. If we can make this work in X11 without the script, it should be
> possible to do it in Wayland too, right?
> </span >
No, with X11 happens the same if you run the test manually.. you see windows appearing on the screen.
<span class="quote">> > To avoid that, you should pass --display-server=weston to the run-gtk-tests
> > script. That would execute the test inside a virtualized Weston server (on
> > top of xvfb)
>
> I would also expect the script to work properly by default, without passing
> any additional arguments. But I think it's fine if that uses xvfb without
> weston, which to my understanding is the current behavior.</span >
The script defaults to use xvfb. So you should not see any window appearing in your screen if you use the script.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>