| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 enum XMLHttpRequestResponseType { | 29 enum XMLHttpRequestResponseType { |
| 30 "", | 30 "", |
| 31 "arraybuffer", | 31 "arraybuffer", |
| 32 "blob", | 32 "blob", |
| 33 "document", | 33 "document", |
| 34 // FIXME: enable once support for json responseText is completed. (bug #73648
) | 34 "json", |
| 35 // "json", | |
| 36 "text" | 35 "text" |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 [ | 38 [ |
| 40 GlobalContext=Window&WorkerGlobalScope, | 39 GlobalContext=Window&WorkerGlobalScope, |
| 41 ActiveDOMObject, | 40 ActiveDOMObject, |
| 42 Constructor, | 41 Constructor, |
| 43 ConstructorCallWith=ScriptExecutionContext, | 42 ConstructorCallWith=ScriptExecutionContext, |
| 44 CustomConstructor(optional XMLHttpRequestOptions options) | 43 CustomConstructor(optional XMLHttpRequestOptions options) |
| 45 ] interface XMLHttpRequest : EventTarget { | 44 ] interface XMLHttpRequest : EventTarget { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 85 |
| 87 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType; | 86 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType; |
| 88 [CustomGetter, GetterRaisesException] readonly attribute Object response; | 87 [CustomGetter, GetterRaisesException] readonly attribute Object response; |
| 89 | 88 |
| 90 [GetterRaisesException] readonly attribute unsigned short status; | 89 [GetterRaisesException] readonly attribute unsigned short status; |
| 91 [GetterRaisesException] readonly attribute DOMString statusText; | 90 [GetterRaisesException] readonly attribute DOMString statusText; |
| 92 | 91 |
| 93 // Extension | 92 // Extension |
| 94 void overrideMimeType(DOMString override); | 93 void overrideMimeType(DOMString override); |
| 95 }; | 94 }; |
| OLD | NEW |