Changeset 83532 in webkit
- Timestamp:
- Apr 11, 2011 4:31:47 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83530 r83532 1 2011-04-11 Chris Marrin <cmarrin@apple.com> 2 3 Rubberstamped by Dan Bernstein. 4 5 xhr.responseType = 'arraybuffer' works on Mac but not on Windows 6 https://bugs.webkit.org/show_bug.cgi?id=50334 7 8 Unskipped the XHR ArrayBuffer test for Windows. I also got rid of a couple of bogus expected 9 results. These had errors in them for what Windows used to be returning. Now the non-platform 10 specific results files are correct for Windows. 11 12 * platform/win/Skipped: 13 * platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt: Removed. 14 * platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt: Removed. 15 1 16 2011-02-03 Martin Robinson <mrobinson@igalia.com> 2 17 -
trunk/LayoutTests/platform/win/Skipped
r83479 r83532 1173 1173 fast/js/i18n-bindings-locale.html 1174 1174 1175 # For https://bugs.webkit.org/show_bug.cgi?id=545191176 fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer.html1177 1178 1175 # https://bugs.webkit.org/show_bug.cgi?id=55921 1179 1176 # Windows port doesn't support HTML in pastes. -
trunk/Source/WebCore/ChangeLog
r83527 r83532 1 2011-04-11 Chris Marrin <cmarrin@apple.com> 2 3 Rubberstamped by Dan Bernstein. 4 5 xhr.responseType = 'arraybuffer' works on Mac but not on Windows 6 https://bugs.webkit.org/show_bug.cgi?id=50334 7 8 Got rid of guards around arraybuffer logic in XHR. ArrayBuffer and friends 9 are always turned on now, so there's not need for the guard. I reenabled the 10 test that was Skipped on Windows and it works now. 11 12 * bindings/js/JSXMLHttpRequestCustom.cpp: 13 (WebCore::JSXMLHttpRequest::markChildren): 14 (WebCore::JSXMLHttpRequest::send): 15 (WebCore::JSXMLHttpRequest::response): 16 * xml/XMLHttpRequest.cpp: 17 (WebCore::XMLHttpRequest::responseArrayBuffer): 18 (WebCore::XMLHttpRequest::setResponseType): 19 (WebCore::XMLHttpRequest::send): 20 (WebCore::XMLHttpRequest::clearResponseBuffers): 21 (WebCore::XMLHttpRequest::didReceiveData): 22 * xml/XMLHttpRequest.h: 23 (WebCore::XMLHttpRequest::optionalResponseArrayBuffer): 24 1 25 2011-04-11 Anna Cavender <annacc@chromium.org> 2 26 -
trunk/Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp
r76600 r83532 65 65 markDOMObjectWrapper(markStack, *Heap::heap(this)->globalData(), responseDocument); 66 66 67 #if ENABLE(WEBGL) || ENABLE(BLOB)68 67 if (ArrayBuffer* responseArrayBuffer = m_impl->optionalResponseArrayBuffer()) 69 68 markDOMObjectWrapper(markStack, *Heap::heap(this)->globalData(), responseArrayBuffer); 70 #endif71 69 72 70 #if ENABLE(XHR_RESPONSE_BLOB) … … 125 123 else if (val.inherits(&JSDOMFormData::s_info)) 126 124 impl()->send(toDOMFormData(val), ec); 127 #if ENABLE(WEBGL) || ENABLE(BLOB)128 125 else if (val.inherits(&JSArrayBuffer::s_info)) 129 126 impl()->send(toArrayBuffer(val), ec); 130 #endif131 127 else 132 128 impl()->send(ustringToString(val.toString(exec)), ec); … … 190 186 191 187 case XMLHttpRequest::ResponseTypeArrayBuffer: 192 #if ENABLE(WEBGL) || ENABLE(BLOB)193 188 { 194 189 ExceptionCode ec = 0; … … 200 195 return toJS(exec, globalObject(), arrayBuffer); 201 196 } 202 #else203 return jsUndefined();204 #endif205 197 } 206 198 -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r83385 r83532 272 272 #endif 273 273 274 #if ENABLE(WEBGL) || ENABLE(BLOB)275 274 ArrayBuffer* XMLHttpRequest::responseArrayBuffer(ExceptionCode& ec) 276 275 { … … 293 292 return 0; 294 293 } 295 #endif296 294 297 295 void XMLHttpRequest::setResponseType(const String& responseType, ExceptionCode& ec) … … 313 311 #endif 314 312 } else if (responseType == "arraybuffer") { 315 #if ENABLE(WEBGL) || ENABLE(BLOB)316 313 m_responseTypeCode = ResponseTypeArrayBuffer; 317 #endif318 314 } else 319 315 ec = SYNTAX_ERR; … … 587 583 } 588 584 589 #if ENABLE(WEBGL) || ENABLE(BLOB)590 585 void XMLHttpRequest::send(ArrayBuffer* body, ExceptionCode& ec) 591 586 { … … 601 596 createRequest(ec); 602 597 } 603 #endif604 598 605 599 void XMLHttpRequest::createRequest(ExceptionCode& ec) … … 740 734 m_responseBlob = 0; 741 735 #endif 742 #if ENABLE(WEBGL) || ENABLE(BLOB)743 736 m_binaryResponseBuilder.clear(); 744 737 m_responseArrayBuffer.clear(); 745 #endif746 738 } 747 739 … … 1077 1069 if (useDecoder) 1078 1070 m_responseBuilder.append(m_decoder->decode(data, len)); 1079 #if ENABLE(WEBGL) || ENABLE(BLOB)1080 1071 else if (responseTypeCode() == ResponseTypeArrayBuffer) { 1081 1072 // Buffer binary data. … … 1084 1075 m_binaryResponseBuilder->append(data, len); 1085 1076 } 1086 #endif1087 1077 1088 1078 if (!m_error) { -
trunk/Source/WebCore/xml/XMLHttpRequest.h
r78782 r83532 96 96 void send(Blob*, ExceptionCode&); 97 97 void send(DOMFormData*, ExceptionCode&); 98 #if ENABLE(WEBGL) || ENABLE(BLOB)99 98 void send(ArrayBuffer*, ExceptionCode&); 100 #endif101 99 void abort(); 102 100 void setRequestHeader(const AtomicString& name, const String& value, ExceptionCode&); … … 116 114 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } 117 115 118 #if ENABLE(WEBGL) || ENABLE(BLOB)119 116 // response attribute has custom getter. 120 117 ArrayBuffer* responseArrayBuffer(ExceptionCode&); 121 118 ArrayBuffer* optionalResponseArrayBuffer() const { return m_responseArrayBuffer.get(); } 122 #endif123 119 124 120 void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lineNumber; } … … 208 204 mutable RefPtr<Document> m_responseXML; 209 205 210 #if ENABLE(WEBGL) || ENABLE(BLOB)211 206 RefPtr<SharedBuffer> m_binaryResponseBuilder; 212 207 mutable RefPtr<ArrayBuffer> m_responseArrayBuffer; 213 #endif214 208 215 209 bool m_error;
Note: See TracChangeset
for help on using the changeset viewer.