Bug 13148 - Need to support named constants for XMLHttpRequest states
Summary: Need to support named constants for XMLHttpRequest states
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 14:01 PDT by Alexey Proskuryakov
Modified: 2008-04-18 00:31 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2007-03-21 14:01:38 PDT
XMLHttpRequest draft spec has recently introduced named constants for state values, which we do not support:

interface XMLHttpRequest {
...
  const unsigned short UNINITIALIZED = 0;
  const unsigned short OPEN = 1;
  const unsigned short SENT = 2;
  const unsigned short RECEIVING = 3;
  const unsigned short LOADED = 4;
Comment 1 Anne van Kesteren 2007-04-02 15:37:25 PDT
FYI: The names are still in flux.
Comment 2 Alexey Proskuryakov 2008-04-18 00:31:15 PDT
Support for named constants was landed by Sam Weinig in <http://trac.webkit.org/projects/webkit/changeset/32037>.

+        const unsigned short UNSENT = 0;
+        const unsigned short OPENED = 1;
+        const unsigned short HEADERS_RECEIVED = 2;
+        const unsigned short LOADING = 3;
+        const unsigned short DONE = 4;