From e221e29198144d3f873e496865d1ba13985def09 Mon Sep 17 00:00:00 2001 From: "mattwillis@gmail.com" Date: Thu, 26 Jul 2007 17:21:01 -0700 Subject: [PATCH] reverting 1.34 - meant for trunk --- content/base/public/nsIXMLHttpRequest.idl | 52 ++++------------------- 1 file changed, 9 insertions(+), 43 deletions(-) diff --git a/content/base/public/nsIXMLHttpRequest.idl b/content/base/public/nsIXMLHttpRequest.idl index 8e30a3f3775..980f119b73b 100644 --- a/content/base/public/nsIXMLHttpRequest.idl +++ b/content/base/public/nsIXMLHttpRequest.idl @@ -261,50 +261,16 @@ interface nsIXMLHttpRequest : nsISupports void setRequestHeader(in AUTF8String header, in AUTF8String value); /** - * The state of the request. Represented by one of the constants below. - * @see http://www.w3.org/TR/XMLHttpRequest/#xmlhttprequest - * @see nsIXMLHttpRequest#UNSENT - * @see nsIXMLHttpRequest#OPEN - * @see nsIXMLHttpRequest#SENT - * @see nsIXMLHttpRequest#LOADING - * @see nsIXMLHttpRequest#DONE + * The state of the request. + * + * Possible values: + * 0 UNINITIALIZED open() has not been called yet. + * 1 LOADING send() has not been called yet. + * 2 LOADED send() has been called, headers and status are available. + * 3 INTERACTIVE Downloading, responseText holds the partial data. + * 4 COMPLETED Finished with all operations. */ - readonly attribute unsinged short readyState; - - /** - * Initial state of new XMLHttpRequest object. open() has not been called. - * @see http://www.w3.org/TR/XMLHttpRequest/#unsent - * @see nsIXMLHttpRequest#readyState - */ - const unsigned short UNSENT = 0; - - /** - * open() has been called. send() has not. - * @see http://www.w3.org/TR/XMLHttpRequest/#open - * @see nsIXMLHttpRequest#readyState - */ - const unsigned short OPEN = 1; - - /** - * send() has been called. Headers and status are available. - * @see http://www.w3.org/TR/XMLHttpRequest/#sent - * @see nsIXMLHttpRequest#readyState - */ - const unsigned short SENT = 2; - - /** - * Downloading, responseText holds the partial data. - * @see http://www.w3.org/TR/XMLHttpRequest/#loading - * @see nsIXMLHttpRequest#readyState - */ - const unsigned short LOADING = 3; - - /** - * All operations are complete. - * @see http://www.w3.org/TR/XMLHttpRequest/#done - * @see nsIXMLHttpRequest#readyState - */ - const unsigned short DONE = 4; + readonly attribute long readyState; /** * Override the mime type returned by the server (if any). This may