From 53d0db2a5cc540814475fb144c828ffad696a00e Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 24 Jan 2017 09:23:11 +0100 Subject: [PATCH] Bug 1333337 - Use USVString in XHR, r=smaug --- dom/webidl/XMLHttpRequest.webidl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dom/webidl/XMLHttpRequest.webidl b/dom/webidl/XMLHttpRequest.webidl index fa44c449ffc6..3d64ed700f3f 100644 --- a/dom/webidl/XMLHttpRequest.webidl +++ b/dom/webidl/XMLHttpRequest.webidl @@ -70,10 +70,10 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget { // request [Throws] - void open(ByteString method, DOMString url); + void open(ByteString method, USVString url); [Throws] - void open(ByteString method, DOMString url, boolean async, - optional DOMString? user=null, optional DOMString? password=null); + void open(ByteString method, USVString url, boolean async, + optional USVString? user=null, optional USVString? password=null); [Throws] void setRequestHeader(ByteString header, ByteString value); @@ -97,7 +97,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget { [Throws] void send(Document data); [Throws] - void send(DOMString? data); + void send(USVString? data); [Throws] void send(FormData data); [Throws] @@ -109,7 +109,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget { void abort(); // response - readonly attribute DOMString responseURL; + readonly attribute USVString responseURL; [Throws] readonly attribute unsigned short status; @@ -131,7 +131,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget { [Throws] readonly attribute any response; [Cached, Pure, Throws] - readonly attribute DOMString? responseText; + readonly attribute USVString? responseText; [Throws, Exposed=Window] readonly attribute Document? responseXML;