Changeset 51380 in webkit


Ignore:
Timestamp:
Nov 25, 2009 5:01:00 AM (14 years ago)
Author:
kov@webkit.org
Message:

Reviewed by Xan Lopez.

Some tests are crashing from time to time
https://bugs.webkit.org/show_bug.cgi?id=31866

Make sure we do not notify the client of a finished load, if the
load has been cancelled, or the client is gone.

  • platform/network/soup/ResourceHandleSoup.cpp: (WebCore::):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51379 r51380  
     12009-11-25  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Reviewed by Xan Lopez.
     4
     5        Some tests are crashing from time to time
     6        https://bugs.webkit.org/show_bug.cgi?id=31866
     7
     8        Make sure we do not notify the client of a finished load, if the
     9        load has been cancelled, or the client is gone.
     10
     11        * platform/network/soup/ResourceHandleSoup.cpp:
     12        (WebCore::):
     13
    1142009-11-24  Ben Murdoch  <benm@google.com>
    215
  • trunk/WebCore/platform/network/soup/ResourceHandleSoup.cpp

    r50784 r51380  
    694694    g_input_stream_close_finish(d->m_inputStream, res, 0);
    695695    cleanupGioOperation(handle.get());
     696
     697    // The load may have been cancelled, the client may have been
     698    // destroyed already. In such cases calling didFinishLoading is a
     699    // bad idea.
     700    if (d->m_cancelled || !client)
     701        return;
     702
    696703    client->didFinishLoading(handle.get());
    697704}
Note: See TracChangeset for help on using the changeset viewer.