WebKit should not be redirected to an invalid URL
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Mar 2016 02:58:47 +0000 (02:58 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Mar 2016 02:58:47 +0000 (02:58 +0000)
commit6ffe492b5cc61e8c16157ce5f6b985351693a60c
treee90ff69ea0d281bbd35e9a287dffb984ec21e035
parente10fe1e9eee4366fb0d52a59709ca94d7de70355
WebKit should not be redirected to an invalid URL
https://bugs.webkit.org/show_bug.cgi?id=155263
<rdar://problem/22820172>

Reviewed by Brent Fulgham.

Source/WebCore:

Test: http/tests/navigation/redirect-to-invalid-url.html

* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::willSendRequestInternal):

LayoutTests:

* http/tests/navigation/redirect-to-invalid-url-expected.txt: Added.
* http/tests/navigation/redirect-to-invalid-url.html: Added.
* http/tests/navigation/resources/redirect-to-invalid-url-frame.php: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@197984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/navigation/redirect-to-invalid-url-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/navigation/redirect-to-invalid-url.html [new file with mode: 0644]
LayoutTests/http/tests/navigation/resources/redirect-to-invalid-url-frame.php [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/loader/SubresourceLoader.cpp