[Webkit-unassigned] [Bug 45994] XMLHttpRequest: status, statusText, getResponseHeader() and getAllResponseHeaders() throw DOM Exception 11 when the state is UNSENT or OPENED.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 20 13:37:31 PDT 2010


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


Jian Li <jianli at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|XMLHttpRequest:             |XMLHttpRequest: status,
                   |getAllResponseHeaders()     |statusText,
                   |throws DOM Exception 11     |getResponseHeader() and
                   |when the state is UNSENT or |getAllResponseHeaders()
                   |OPENED.                     |throw DOM Exception 11 when
                   |                            |the state is UNSENT or
                   |                            |OPENED.




--- Comment #2 from Jian Li <jianli at chromium.org>  2010-09-20 13:37:31 PST ---
The exception is also thrown when calling status, statusText, and getResponseHeader().

Per the spec:
  The status attribute must return the result of running these steps:
  If the state is UNSENT or OPENED return 0 and terminate these steps.

  The statusText attribute must return the result of running these steps:
  If the state is UNSENT or OPENED return the empty string and terminate these steps.

  When the getResponseHeader(header) is invoked, the user agent must run these steps:
  If the state is UNSENT or OPENED return null and terminate these steps.

Some more failing tests:
  http://tc.labs.opera.com/apis/XMLHttpRequest/getallresponseheaders-status.htm
  http://tc.labs.opera.com/apis/XMLHttpRequest/getresponseheader-cookies-and-more.htm
  http://tc.labs.opera.com/apis/XMLHttpRequest/xmlhttprequest-network-error.htm

-- 
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