|
|
Line 116: |
Line 116: |
| */ | | */ |
| nsIDOMWorkerThread createWorkerFromURI(in DOMString aScriptURI); | | nsIDOMWorkerThread createWorkerFromURI(in DOMString aScriptURI); |
| };
| |
|
| |
| [scriptable, function, uuid(fc8c2d9c-7b0e-467e-91f8-4715497d8ac6)]
| |
| interface nsIDOMWorkerHttpRequestCallback : nsISupports
| |
| {
| |
| void onChange();
| |
| };
| |
|
| |
| [scriptable, uuid(b66e5bf1-3269-4e33-ab32-4786fec42377)]
| |
| interface nsIDOMWorkerHttpRequest : nsISupports
| |
| {
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| readonly attribute AString responseText;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| readonly attribute unsigned long status;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| readonly attribute AUTF8String statusText;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| void abort();
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| string getAllResponseHeaders();
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| ACString getResponseHeader(in AUTF8String header);
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| void open(in AUTF8String method, in AUTF8String url);
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| void send(in nsIVariant body);
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| void sendAsBinary(in DOMString body);
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| void setRequestHeader(in AUTF8String header, in AUTF8String value);
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| readonly attribute long readyState;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| void overrideMimeType(in AUTF8String mimetype);
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| attribute nsIDOMWorkerHttpRequestCallback onload;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| attribute nsIDOMWorkerHttpRequestCallback onerror;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| attribute nsIDOMWorkerHttpRequestCallback onprogress;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| attribute nsIDOMWorkerHttpRequestCallback onuploadprogress;
| |
|
| |
| /**
| |
| * See nsIXMLHttpRequest.idl
| |
| */
| |
| attribute nsIDOMWorkerHttpRequestCallback onreadystatechange;
| |
| }; | | }; |
|
| |
|
Line 252: |
Line 157: |
|
| |
|
| /** | | /** |
| * Creates a new HttpRequest object. | | * Creates a new XMLHttpRequest object. |
| * | | * |
| * Use: 'var req = new HttpRequest();' | | * Use: 'var req = new XMLHttpRequest();' |
| */ | | */ |
| /* nsIDOMWorkerHttpRequest HttpRequest(); */ | | /* nsIJSXMLHttpRequest XMLHttpRequest(); */ |
|
| |
|
| /** | | /** |