2011-03-16 Pratik Solanki <psolanki@apple.com>
Reviewed by Alexey Proskuryakov.
REGRESSION: Crash in adjustMIMETypeIfNecessary since r81001
https://bugs.webkit.org/show_bug.cgi?id=56345
Add test that verifies the we don't crash when an XHR response headers don't contain
Content-Type.
* http/tests/xmlhttprequest/resources/.htaccess:
* http/tests/xmlhttprequest/resources/noContentType.asis: Added.
* http/tests/xmlhttprequest/xmlhttprequest-no-content-type-expected.txt: Added.
* http/tests/xmlhttprequest/xmlhttprequest-no-content-type.html: Added.
2011-03-16 Pratik Solanki <psolanki@apple.com>
Reviewed by Alexey Proskuryakov.
REGRESSION: Crash in adjustMIMETypeIfNecessary since r81001
https://bugs.webkit.org/show_bug.cgi?id=56345
Add NULL check for Content-Type header field.
Test: http/tests/xmlhttprequest/xmlhttprequest-no-content-type.html
* platform/network/mac/WebCoreURLResponse.mm:
(WebCore::adjustMIMETypeIfNecessary):
git-svn-id: svn://svn.chromium.org/blink/trunk@81267 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment