[Webkit-unassigned] [Bug 3547] XMLHttpRequest.statusText returns always "OK"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 27 23:47:05 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=3547





------- Comment #9 from ap at webkit.org  2009-02-27 23:47 PDT -------
(From update of attachment 28071)
     // FIXME: <http://bugs.webkit.org/show_bug.cgi?id=3547>
XMLHttpRequest.statusText returns always "OK".

Yes, this FIXME should be removed now, and new bugs should be filed for
platforms that have this problem with ResourceResponse. Note that this bug is
categorized as Macintosh/10.4, which means that the reporter needed it fixed on
Mac - but I think that it's OK to make a new bug tracking the Mac fix.

     if (m_response.httpStatusCode())
-        return "OK";
+        if (!m_response.httpStatusText().isEmpty())
+            return m_response.httpStatusText();
+        else
+            return "OK";

At least Mac implementation always fills the response status text with OK. It
would be better to ensure that all implementations do this, and to remove the
isEmpty() check.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list