Auto merge of #9294 - KiChjang:xhr-usvstring, r=nox

Change all DOMStrings to USV strings for XHR

This is in compliance with the new spec [here](https://xhr.spec.whatwg.org/#xmlhttprequest).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9294)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-01-17 19:40:46 +05:30
commit 7ae16c7ea3
4 changed files with 28 additions and 28 deletions

View file

@ -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;
};