XMLHttpRequest should support attribute responseURL as per latest XHR spec.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Oct 2014 17:16:44 +0000 (17:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Oct 2014 17:16:44 +0000 (17:16 +0000)
commit33e6e95ad5cb7d7be023e73c515d4cd4b3db2833
tree03e7b6554dff757187c0374c1063d0d6e5c97b8b
parentda33eee952ab07278bd7138678d1383a04d8a340
XMLHttpRequest should support attribute responseURL as per latest XHR spec.
https://bugs.webkit.org/show_bug.cgi?id=136938

Patch by Shivakumar JM <shiva.jm@samsung.com> on 2014-10-22
Reviewed by Alexey Proskuryakov.

Source/WebCore:

Tests: http/tests/xmlhttprequest/basic-auth-responseURL.html
       http/tests/xmlhttprequest/cross-origin-redirect-responseURL.html
       http/tests/xmlhttprequest/redirect-credentials-responseURL.html
       http/tests/xmlhttprequest/xmlhttprequest-responseURL.html

XMLHttpRequest should support attribute responseURL

* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::responseURL):
* xml/XMLHttpRequest.h:
* xml/XMLHttpRequest.idl:

LayoutTests:

Added test to check responseURL attribute in XMLHttpRequest.

* http/tests/xmlhttprequest/basic-auth-responseURL-expected.txt: Added.
* http/tests/xmlhttprequest/basic-auth-responseURL.html: Added.
* http/tests/xmlhttprequest/cross-origin-redirect-responseURL-expected.txt: Added.
* http/tests/xmlhttprequest/cross-origin-redirect-responseURL.html: Added.
* http/tests/xmlhttprequest/redirect-credentials-responseURL-expected.txt: Added.
* http/tests/xmlhttprequest/redirect-credentials-responseURL.html: Added.
* http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt: Added.
* http/tests/xmlhttprequest/xmlhttprequest-responseURL.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/basic-auth-responseURL-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/basic-auth-responseURL.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/cross-origin-redirect-responseURL-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/cross-origin-redirect-responseURL.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/redirect-credentials-responseURL-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/redirect-credentials-responseURL.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/xml/XMLHttpRequest.cpp
Source/WebCore/xml/XMLHttpRequest.h
Source/WebCore/xml/XMLHttpRequest.idl