<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Web Process crashes on reparenting a WebView with AC mode on"
   href="https://bugs.webkit.org/show_bug.cgi?id=151139#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Web Process crashes on reparenting a WebView with AC mode on"
   href="https://bugs.webkit.org/show_bug.cgi?id=151139">bug 151139</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=151139#c11">comment #11</a>)
<span class="quote">&gt; Basically, it would be applying this patch on top of Carlos's last one:
&gt; 
&gt; --- a/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
&gt; +++ b/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
&gt; &#64;&#64; -145,8 +145,10 &#64;&#64; LayerTreeHostGtk::LayerTreeHostGtk(WebPage* webPage)
&gt;  
&gt;  bool LayerTreeHostGtk::makeContextCurrent()
&gt;  {
&gt; -    if (!m_layerTreeContext.contextID)
&gt; +    if (!m_layerTreeContext.contextID) {
&gt; +        m_context = nullptr;
&gt;          return false;
&gt; +    }
&gt; 
&gt; 
&gt; I've tested this locally and it fixes the issue for me reliably, both in
&gt; Release and Debug builds. 
&gt; 
&gt; Carlos, what do you think?</span >

I think you write too much :-) awesome analysis, and I agree with your solution, makeContextCurrent() is the one creating the context, so look like a good place to delete it also when the ID becomes 0. I'll submit a new patch. Thanks!</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>