<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#c2">Comment # 2</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:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=168197#c1">comment #1</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=168197#c0">comment #0</a>)
&gt; &gt; When running /webkit2/WebKitPrintOperation/custom-widget, a GtkWindow
&gt; &gt; appears on my screen and I get to watch as the print dialog is opened and
&gt; &gt; closed. This happens when running several other API tests too. It shouldn't.
&gt; &gt; 
&gt; &gt; This is probably a Wayland-specific problem as I don't think I've ever seen
&gt; &gt; this when using X.
&gt; 
&gt; Are you passing --display-server=wayland to Tools/Scripts/run-gtk-tests ?
&gt; Then that is the expected behaviour (you see the window)</span >

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), 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 class="quote">&gt; To avoid that, you should pass --display-server=weston to the run-gtk-tests
&gt; script. That would execute the test inside a virtualized Weston server (on
&gt; top of xvfb)</span >

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.</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>