WebCore:

2008-03-29  Sam Weinig  <sam@webkit.org>

        Reviewed by Brady Eidson.

        Fix crash when canceling a resource load while port blocked failure
        timer is going.

        Test: fast/loader/cancel-load-during-port-block-timer.html

        * platform/network/ResourceHandle.cpp:
        (WebCore::ResourceHandle::scheduleBlockedFailure):
        (WebCore::ResourceHandle::fireBlockedFailure):
        * platform/network/ResourceHandleInternal.h:
        (WebCore::ResourceHandleInternal::ResourceHandleInternal):
        Make the Timer a member variable of ResourceHandleInternal so
        that it can be canceled if the ResourceHandle is destroyed.

LayoutTests:

2008-03-29  Sam Weinig  <sam@webkit.org>

        Reviewed by Brady Eidson.

        Test for crash when canceling a resource load while port blocked failure
        timer is going

        * fast/loader/cancel-load-during-port-block-timer-expected.txt: Added.
        * fast/loader/cancel-load-during-port-block-timer.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6 files changed