The WebKitWebView keeps track of the resources being loaded in a map that is cleared each time a new load starts. As it's using the injected bundle API to track resource loads it might happen (specially when running webkit under valgrind) that we get notifications for resources that correspond to previous page loads.
We need to remove those ASSERTs as they're no longer correct.
Created attachment 205992 [details]
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment on attachment 205992 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=205992&action=review
You are absolutely right, but I'm not sure about the second assert. Thanks!
> - ASSERT(priv->loadingResourcesMap.contains(resourceIdentifier));
I'm not sure about this one, this method is always called after webkitWebViewGetLoadingWebResource() only when we have a valid pointer.
Committed r152354: <http://trac.webkit.org/changeset/152354>