WebCore/ChangeLog

 12009-03-04 Adam Bergkvist <adam.bergkvist@ericsson.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 https://bugs.webkit.org/show_bug.cgi?id=3547
 6 XMLHttpRequest.statusText returns always "OK"
 7
 8 Return ResourceResponse status text. It is now up to each platform
 9 to correctly set the status text or set it to "OK" to retain current
 10 behavior.
 11
 12 * xml/XMLHttpRequest.cpp:
 13 (WebCore::XMLHttpRequest::statusText):
 14
1152009-03-02 Kim Grönholm <kim.gronholm@nomovok.com>
216
317 Reviewed by Simon Hausmann.
41420

WebCore/xml/XMLHttpRequest.cpp

@@int XMLHttpRequest::status(ExceptionCode
11091109
11101110String XMLHttpRequest::statusText(ExceptionCode& ec) const
11111111{
1112  // FIXME: <http://bugs.webkit.org/show_bug.cgi?id=3547> XMLHttpRequest.statusText returns always "OK".
1113  if (m_response.httpStatusCode())
1114  return "OK";
1115 
11161112 if (m_state == OPENED) {
11171113 // See comments in getStatus() above.
11181114 ec = INVALID_STATE_ERR;
11191115 }
11201116
1121  return String();
 1117 return m_response.httpStatusText();
11221118}
11231119
11241120void XMLHttpRequest::didFail(const ResourceError& error)
41353

LayoutTests/ChangeLog

 12009-03-04 Adam Bergkvist <adam.bergkvist@ericsson.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 https://bugs.webkit.org/show_bug.cgi?id=3547
 6 XMLHttpRequest.statusText returns always "OK"
 7
 8 Added platform specific expected results for tests that now pass.
 9
 10 * platform/gtk/http: Added.
 11 * platform/gtk/http/tests: Added.
 12 * platform/gtk/http/tests/xmlhttprequest: Added.
 13 * platform/gtk/http/tests/xmlhttprequest/web-apps: Added.
 14 * platform/gtk/http/tests/xmlhttprequest/web-apps/012-expected.txt: Added.
 15 * platform/gtk/http/tests/xmlhttprequest/web-apps/013-expected.txt: Added.
 16 * platform/qt/http/tests/xmlhttprequest: Added.
 17 * platform/qt/http/tests/xmlhttprequest/web-apps: Added.
 18 * platform/qt/http/tests/xmlhttprequest/web-apps/012-expected.txt: Added.
 19 * platform/qt/http/tests/xmlhttprequest/web-apps/013-expected.txt: Added.
 20 * platform/win/http: Added.
 21 * platform/win/http/tests: Added.
 22 * platform/win/http/tests/xmlhttprequest: Added.
 23 * platform/win/http/tests/xmlhttprequest/web-apps: Added.
 24 * platform/win/http/tests/xmlhttprequest/web-apps/012-expected.txt: Added.
 25 * platform/win/http/tests/xmlhttprequest/web-apps/013-expected.txt: Added.
 26
1272009-03-03 Anders Carlsson <andersca@apple.com>
228
329 Reviewed by John Sullivan.
41420

LayoutTests/platform/gtk/http/tests/xmlhttprequest/web-apps/012-expected.txt

 1PASS
0

LayoutTests/platform/gtk/http/tests/xmlhttprequest/web-apps/013-expected.txt

 1PASS
0

LayoutTests/platform/qt/http/tests/xmlhttprequest/web-apps/012-expected.txt

 1PASS
0

LayoutTests/platform/qt/http/tests/xmlhttprequest/web-apps/013-expected.txt

 1PASS
0

LayoutTests/platform/win/http/tests/xmlhttprequest/web-apps/012-expected.txt

 1PASS
0

LayoutTests/platform/win/http/tests/xmlhttprequest/web-apps/013-expected.txt

 1PASS
0