<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><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> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] webkitWebViewBaseRealize broken in Wayland with USE_OPENGL=OFF"
   href="https://bugs.webkit.org/show_bug.cgi?id=154814">bug 154814</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>mcatanzaro&#64;igalia.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>webkitgtk4-2.11.90-2.fc24 misrenders on wayland and tries to use X11
           </td>
           <td>[GTK] webkitWebViewBaseRealize broken in Wayland with USE_OPENGL=OFF
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] webkitWebViewBaseRealize broken in Wayland with USE_OPENGL=OFF"
   href="https://bugs.webkit.org/show_bug.cgi?id=154814#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] webkitWebViewBaseRealize broken in Wayland with USE_OPENGL=OFF"
   href="https://bugs.webkit.org/show_bug.cgi?id=154814">bug 154814</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=154814#c0">comment #0</a>)
<span class="quote">&gt; Might be related to the fact that Fedora 24 is built with ENABLE_OPENGL=off
&gt; since the problem doesn't happen in rawhide with the same version (but has
&gt; opengl enabled)</span >

This code in webkitWebViewBaseRealize is wrong:

#if USE(TEXTURE_MAPPER) &amp;&amp; PLATFORM(X11) &amp;&amp; !USE(REDIRECTED_XCOMPOSITE_WINDOW)
    if (DrawingAreaProxyImpl* drawingArea = static_cast&lt;DrawingAreaProxyImpl*&gt;(priv-&gt;pageProxy-&gt;drawingArea()))
        drawingArea-&gt;setNativeSurfaceHandleForCompositing(GDK_WINDOW_XID(window));
#endif

You can see it improperly casts the GdkWindow to a GdkX11Window without checking to make sure it's X11. And I see it's guarded by USE(TEXTURE_MAPPER) so it's indeed not enabled by default, that explains why it works in rawhide (where I reenabled USE_OPENGL after our recent bugfixes) but not F24 (which I accidentally did not reenable USE_OPENGL until just now).</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>