[Webkit-unassigned] [Bug 29121] XMLHttpRequest::getAllResponseHeaders throws INVALID_STATE_ERR when called in state HEADERS_RECEIVED

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 11 12:31:47 PDT 2009


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


Carol Szabo <carol.szabo at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|All                         |PC
          Component|XML                         |WebCore JavaScript




--- Comment #14 from Carol Szabo <carol.szabo at nokia.com>  2009-09-11 12:31:46 PDT ---
(In reply to comment #12)
> (In reply to comment #0)
> > Despite
> > http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#the-getallresponseheaders-method
> > mentioning explicitely and with an example that
> > XMLHttpRequest::getAllResponseHeaders should return the headers in readyState
> > HEADERS_RECEIVED. The Webkit implementation still throws an exception in this
> > scenario.
> 
> Have you tested IE and Firefox? Please do.

Firefox 3.0.8 works per the standard in this regard.
IE 6 does not have the concept of readyState
IE 7 and IE 8 have a concept of readyState, but it is not the same as the one
specified in the standard, and thus IE has a different behavior than WebKit
regardless of whether I put my change in or not. IE only gives access to
headers when the whole load finished, which is not what WebKit did before my
fix.


> I suggest making these HTTP tests. Asking for HTTP response headers of a
> file:/// resource doesn't make much sense, and there is no specification for
> XHR operating on such.

I agree, I will do that.

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



More information about the webkit-unassigned mailing list