Skip to content
  • darin@apple.com's avatar
    WebCore: · 1bab162f
    darin@apple.com authored
            Reviewed and landed by Darin.
    
            bug 12182 : XMLHttpRequest should raise SECURITY_ERR for same-origin policy violations
    
            Removed reference to PERMISSION_DENIED (previous non standard exception) and replaced it
            by DOM exception SECURITY_ERR. Updated XMLHttpRequest::open to raise SECURITY_ERR.
    
            * bindings/js/kjs_binding.cpp:
            (WebCore::setDOMException): Removed PERMISSION_DENIED code.
            * dom/ExceptionCode.cpp: Added SECURITY_ERR exception.
            * dom/ExceptionCode.h: Ditto.
            * xml/XMLHttpRequest.cpp:
            (WebCore::XMLHttpRequest::open): Returns SECURITY_ERR now.
            * xml/XMLHttpRequestException.h: Removed PERMISSION_DENIED.
    
    LayoutTests:
    
            Reviewed and landed by Darin.
    
            bug 12182 : XMLHttpRequest should raise SECURITY_ERR for same-origin policy violations
    
            * http/tests/xmlhttprequest/exceptions-expected.txt: Updated results
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1bab162f