<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&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <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">&gt; (In reply to <a href="show_bug.cgi?id=168197#c1">comment #1</a>)
&gt; &gt; (In reply to <a href="show_bug.cgi?id=168197#c0">comment #0</a>)
&gt; &gt; &gt; When running /webkit2/WebKitPrintOperation/custom-widget, a GtkWindow
&gt; &gt; &gt; appears on my screen and I get to watch as the print dialog is opened and
&gt; &gt; &gt; closed. This happens when running several other API tests too. It shouldn't.
&gt; &gt; &gt; 
&gt; &gt; &gt; This is probably a Wayland-specific problem as I don't think I've ever seen
&gt; &gt; &gt; this when using X.
&gt; &gt; 
&gt; &gt; Are you passing --display-server=wayland to Tools/Scripts/run-gtk-tests ?
&gt; &gt; Then that is the expected behaviour (you see the window)
&gt; 
&gt; No, I'm just running the tests manually (because run-gtk-tests doesn't
&gt; support running individual tests and expects to use a build directory
&gt; created by build-webkit, which I avoid except when required to run layout
&gt; 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">&gt; which works fine under
&gt; X11. If we can make this work in X11 without the script, it should be
&gt; possible to do it in Wayland too, right?
&gt; </span >

No, with X11 happens the same if you run the test manually.. you see windows appearing on the screen.

<span class="quote">&gt; &gt; To avoid that, you should pass --display-server=weston to the run-gtk-tests
&gt; &gt; script. That would execute the test inside a virtualized Weston server (on
&gt; &gt; top of xvfb)
&gt; 
&gt; I would also expect the script to work properly by default, without passing
&gt; any additional arguments. But I think it's fine if that uses xvfb without
&gt; 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>