aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/XMLHttpRequest.webidl
diff options
context:
space:
mode:
authorKeith Yeung <kungfukeith11@gmail.com>2016-01-13 11:33:43 -0500
committerKeith Yeung <kungfukeith11@gmail.com>2016-01-16 08:51:34 -0500
commita64f832e572c67d6bee6b1e488508678fa64e059 (patch)
tree7645ef7b992cf897d7dbbc565368d71ae20b2050 /components/script/dom/webidls/XMLHttpRequest.webidl
parentc7e86411746d229b1f5d43ca55875f7ddda9145a (diff)
downloadservo-a64f832e572c67d6bee6b1e488508678fa64e059.tar.gz
servo-a64f832e572c67d6bee6b1e488508678fa64e059.zip
Change all DOMStrings to USV strings for XHR
Diffstat (limited to 'components/script/dom/webidls/XMLHttpRequest.webidl')
-rw-r--r--components/script/dom/webidls/XMLHttpRequest.webidl13
1 files changed, 6 insertions, 7 deletions
diff --git a/components/script/dom/webidls/XMLHttpRequest.webidl b/components/script/dom/webidls/XMLHttpRequest.webidl
index 372627a0eca..4223a13543c 100644
--- a/components/script/dom/webidls/XMLHttpRequest.webidl
+++ b/components/script/dom/webidls/XMLHttpRequest.webidl
@@ -37,16 +37,15 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
const unsigned short HEADERS_RECEIVED = 2;
const unsigned short LOADING = 3;
const unsigned short DONE = 4;
-
readonly attribute unsigned short readyState;
// request
[Throws]
- void open(ByteString method, /* [EnsureUTF16] */ DOMString url);
+ void open(ByteString method, USVString url);
[Throws]
- void open(ByteString method, /* [EnsureUTF16] */ DOMString url, boolean async,
- optional /* [EnsureUTF16] */ DOMString? username = null,
- optional /* [EnsureUTF16] */ DOMString? password = null);
+ void open(ByteString method, USVString url, boolean async,
+ optional USVString? username = null,
+ optional USVString? password = null);
[Throws]
void setRequestHeader(ByteString name, ByteString value);
@@ -60,7 +59,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
void abort();
// response
- readonly attribute DOMString responseURL;
+ readonly attribute USVString responseURL;
readonly attribute unsigned short status;
readonly attribute ByteString statusText;
ByteString? getResponseHeader(ByteString name);
@@ -71,7 +70,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
attribute XMLHttpRequestResponseType responseType;
readonly attribute any response;
[Throws]
- readonly attribute DOMString responseText;
+ readonly attribute USVString responseText;
[Throws]
/*[Exposed=Window]*/ readonly attribute Document? responseXML;
};