Changeset 152354 in webkit


Ignore:
Timestamp:
Jul 3, 2013 7:52:03 AM (11 years ago)
Author:
sergio@webkit.org
Message:

[WK2][GTK] Invalid ASSERTs in WebResources loading code
https://bugs.webkit.org/show_bug.cgi?id=118352

Reviewed by Carlos Garcia Campos.

The WebKitWebView keeps track of the resources being loaded in a
map. A couple of ASSERTs verify that every loaded resource is
stored in that map.

The map that is cleared each time a new load starts so there is a
small chance that we get notifications for resources that
correspond to previous page loads
(and thus are not stored in the map). We should remove the ASSERT
which is not valid anymore.

  • UIProcess/API/gtk/WebKitWebView.cpp:

(webkitWebViewGetLoadingWebResource):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r152344 r152354  
     12013-07-03  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        [WK2][GTK] Invalid ASSERTs in WebResources loading code
     4        https://bugs.webkit.org/show_bug.cgi?id=118352
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        The WebKitWebView keeps track of the resources being loaded in a
     9        map. A couple of ASSERTs verify that every loaded resource is
     10        stored in that map.
     11
     12        The map that is cleared each time a new load starts so there is a
     13        small chance that we get notifications for resources that
     14        correspond to previous page loads
     15        (and thus are not stored in the map). We should remove the ASSERT
     16        which is not valid anymore.
     17
     18        * UIProcess/API/gtk/WebKitWebView.cpp:
     19        (webkitWebViewGetLoadingWebResource):
     20
    1212013-07-03  Carlos Garcia Campos  <cgarcia@igalia.com>
    222
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp

    r151724 r152354  
    16231623{
    16241624    GRefPtr<WebKitWebResource> resource = webView->priv->loadingResourcesMap.get(resourceIdentifier);
    1625     ASSERT(resource.get());
    16261625    return resource.get();
    16271626}
Note: See TracChangeset for help on using the changeset viewer.