Skip to content
  • weinig@apple.com's avatar
    WebCore: · 87a569ca
    weinig@apple.com authored
    2008-05-17  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Mark Rowe.
    
            Differentiate between cancelation errors and generic network error in XHR.
    
            * loader/FrameLoader.cpp:
            (WebCore::FrameLoader::requestFromDelegate):
            (WebCore::FrameLoader::cancelledError):
            * platform/network/ResourceErrorBase.h:
            (WebCore::ResourceErrorBase::setIsCancelation):
            (WebCore::ResourceErrorBase::isCancelation):
            (WebCore::ResourceErrorBase::ResourceErrorBase):
            Add state that differentiates between errors created by cancelation and those made
            by all other generic network errors as this differentiation is needed by some specs.
    
            * xml/XMLHttpRequest.cpp:
            (WebCore::XMLHttpRequest::open):
            (WebCore::XMLHttpRequest::loadRequestSynchronously):
            (WebCore::XMLHttpRequest::clearResponseEntityBody):
            (WebCore::XMLHttpRequest::genericError):
            (WebCore::XMLHttpRequest::networkError):
            (WebCore::XMLHttpRequest::abortError):
            (WebCore::XMLHttpRequest::didFail):
            * xml/XMLHttpRequest.h:
            * xml/XMLHttpRequestException.h:
            (WebCore::XMLHttpRequestException::):
            * xml/XMLHttpRequestException.idl:
            Add ABORT_ERR. This error cannot be raised with the current WebKit architecture
            as it requires the ability to cancel a synchronous XHR, which we cannot currently
            do.  It may be possible in the future though.
    
    LayoutTests:
    
    2008-05-17  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Mark Rowe.
    
            Update expected results for new ABORT_ERR.
    
            * fast/dom/Window/window-properties-expected.txt:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    87a569ca