Changeset 21952 in webkit


Ignore:
Timestamp:
Jun 1, 2007 7:37:45 PM (17 years ago)
Author:
andersca
Message:

Reviewed by David Harrison.

<rdar://problem/5236843>
CrashTracer: [USER] 3 crashes in Mail at WebCore::Loader::didReceiveResponse(WebCore::SubresourceLoader*, WebCore::ResourceResponse const&)

This is by no means the best solution for handling user style sheets. I've filed <rdar://problem/5244734>
for tracking that.


  • loader/loader.cpp: (WebCore::Loader::didReceiveResponse): If a load starts while the frame is still in the provisional state (this can be the case when loading the user style sheet), committing the load then causes all requests to be removed from the m_requestsLoading map. This means that req might be null here. In that case we just return early.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r21950 r21952  
     12007-06-01  Anders Carlsson  <acarlsson@apple.com>
     2
     3        Reviewed by David Harrison.
     4
     5        <rdar://problem/5236843>
     6        CrashTracer: [USER] 3 crashes in Mail at WebCore::Loader::didReceiveResponse(WebCore::SubresourceLoader*, WebCore::ResourceResponse const&)
     7
     8        This is by no means the best solution for handling user style sheets. I've filed <rdar://problem/5244734>
     9        for tracking that.
     10       
     11        * loader/loader.cpp:
     12        (WebCore::Loader::didReceiveResponse):
     13        If a load starts while the frame is still in the provisional state
     14        (this can be the case when loading the user style sheet), committing the load then causes all
     15        requests to be removed from the m_requestsLoading map. This means that req might be null here.
     16        In that case we just return early.
     17       
    1182007-06-01  Mitz Pettel  <mitz@webkit.org>
    219
  • trunk/WebCore/loader/loader.cpp

    r21732 r21952  
    158158{
    159159    Request* req = m_requestsLoading.get(loader);
    160     ASSERT(req);
     160   
     161    // FIXME: This is a workaround for <rdar://problem/5236843>
     162    // If a load starts while the frame is still in the provisional state
     163    // (this can be the case when loading the user style sheet), committing the load then causes all
     164    // requests to be removed from the m_requestsLoading map. This means that req might be null here.
     165    // In that case we just return early.
     166    // ASSERT(req);
     167    if (!req)
     168        return;
    161169    req->cachedResource()->setResponse(response);
    162170   
Note: See TracChangeset for help on using the changeset viewer.