<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Critical warnings in /webkit2/WebKitWebView/session-state-with-form-data"
   href="https://bugs.webkit.org/show_bug.cgi?id=168195">168195</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] Critical warnings in /webkit2/WebKitWebView/session-state-with-form-data
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mcatanzaro&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org, svillar&#64;igalia.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=301312" name="attach_301312" title="Full backtrace">attachment 301312</a> <a href="attachment.cgi?id=301312&amp;action=edit" title="Full backtrace">[details]</a></span>
Full backtrace

A couple criticals occur in the API test /webkit2/WebKitWebView/session-state-with-form-data:                 

(WebKitWebProcess:31443): GLib-CRITICAL **: g_string_append: assertion 'val != NULL' failed



(WebKitWebProcess:31443): GLib-CRITICAL **: g_string_append: assertion 'val != NULL' failed

OK

Anyway, I got a backtrace and it seems to be a bug with the form-controls-associated signal handler:

#3  0x00007f6be3796c77 in g_return_if_fail_warning (
    log_domain=0x7f6be37f44bf &quot;GLib&quot;, 
    pretty_function=0x7f6be37f45d0 &lt;__func__.10999&gt; &quot;g_string_insert_len&quot;, 
    expression=0x7f6be37f44d1 &quot;len == 0 || val != NULL&quot;)
    at /home/mcatanzaro/Projects/GNOME/glib/glib/gmessages.c:2687
No locals.
#4  0x00007f6be37b3e1d in g_string_insert_len (string=0x2275c80, pos=-1, 
    val=0x0, len=-1) at /home/mcatanzaro/Projects/GNOME/glib/glib/gstring.c:430
        __func__ = &quot;g_string_insert_len&quot;
#5  0x00007f6be37b4341 in g_string_append (string=0x2275c80, val=0x0)
    at /home/mcatanzaro/Projects/GNOME/glib/glib/gstring.c:596
No locals.
#6  0x00007f6b947f5fcd in formControlsAssociatedCallback (webPage=0x226a360, 
    formElements=0x22b3460, extension=0x21a4ba0)
    at ../../Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:265
        domElement = 0x216d590
        i = 0
        formIdsBuilder = 0x2275c80
        __PRETTY_FUNCTION__ = &quot;void formControlsAssociatedCallback(WebKitWebPage*, GPtrArray*, WebKitWebExtension*)&quot;
        formIds = std::unique_ptr&lt;char&gt; containing 0x7ffd5f3162c0 &quot;&quot;
        data = 0x200216bc80

Note that the web process criticals do not cause the test to fail. That's bad! Even a non-critical warning in the UI process would be sufficient to cause our tests to fail, but this bug went undetected because it occurred in the web process. We should probably run all the tests with G_DEBUG=fatal-warnings to ensure this works for the web process in addition to the UI process.</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>