Index: core/xml/XMLHttpRequest.idl |
diff --git a/core/xml/XMLHttpRequest.idl b/core/xml/XMLHttpRequest.idl |
index 2fba4d654a1773f641f2fa587e221d5fe1ff74fc..6eaa71bd8e2e6572d142a69a9d9baceb12bf46e9 100644 |
--- a/core/xml/XMLHttpRequest.idl |
+++ b/core/xml/XMLHttpRequest.idl |
@@ -37,9 +37,10 @@ enum XMLHttpRequestResponseType { |
}; |
[ |
+ WillBeGarbageCollected, |
ActiveDOMObject, |
CustomConstructor(optional XMLHttpRequestOptions options), |
- GlobalContext=Window&WorkerGlobalScope, |
+ Exposed=Window&Worker |
] interface XMLHttpRequest : XMLHttpRequestEventTarget { |
// event handler attributes |
attribute EventHandler onreadystatechange; |
@@ -56,11 +57,18 @@ enum XMLHttpRequestResponseType { |
[RaisesException=Setter] attribute boolean withCredentials; |
- [Custom, ActivityLogging=ForAllWorlds, RaisesException] void open(DOMString method, DOMString url, optional boolean async, optional DOMString user, optional DOMString password); |
+ [Custom, LogActivity, LogAllWorlds, RaisesException] void open(DOMString method, DOMString url, optional boolean async, optional DOMString user, optional DOMString password); |
- [ActivityLogging=ForAllWorlds, RaisesException] void setRequestHeader(DOMString header, DOMString value); |
+ [LogActivity, LogAllWorlds, RaisesException] void setRequestHeader(DOMString header, DOMString value); |
[Custom, RaisesException] void send(); |
+ // FIXMEDART: send(ArrayBuffer data) should be eventually deprecated. |
+ [DartCustom=New] void send(ArrayBuffer data); |
+ [DartCustom=New] void send(ArrayBufferView data); |
+ [DartCustom=New] void send(Blob data); |
+ [DartCustom=New] void send(Document data); |
+ [DartCustom=New] void send(DOMString data); |
+ [DartCustom=New] void send(FormData data); |
void abort(); |
@@ -74,6 +82,7 @@ enum XMLHttpRequestResponseType { |
[RaisesException=Setter] attribute XMLHttpRequestResponseType responseType; |
[Custom=Getter, RaisesException=Getter] readonly attribute object response; |
+ readonly attribute DOMString responseURL; |
readonly attribute unsigned short status; |
readonly attribute DOMString statusText; |