Changeset 120574 in webkit
- Timestamp:
- Jun 18, 2012 12:06:39 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120573 r120574 1 2012-06-15 Kinuko Yasuda <kinuko@chromium.org> 2 3 XHR_RESPONSE_BLOB is not enabled on some platforms 4 https://bugs.webkit.org/show_bug.cgi?id=88859 5 6 Reviewed by Adam Barth. 7 8 Removing xhr.Blob related test from Skipped files. 9 10 * platform/efl/Skipped: 11 * platform/gtk/TestExpectations: 12 * platform/mac/Skipped: 13 * platform/qt/Skipped: 14 * platform/win/Skipped: 15 * platform/wincairo/Skipped: 16 1 17 2012-06-17 Christophe Dumez <christophe.dumez@intel.com> 2 18 -
trunk/LayoutTests/platform/efl/Skipped
r120493 r120574 1176 1176 # Needs a text rebaseline: 30px height difference. 1177 1177 fast/block/basic/fieldset-stretch-to-legend.html 1178 1179 # Fail until ENABLE_XHR_RESPONSE_BLOB is enabled after r1200421180 # https://bugs.webkit.org/show_bug.cgi?id=888591181 http/tests/xmlhttprequest/response-blob-size.html -
trunk/LayoutTests/platform/gtk/TestExpectations
r120493 r120574 324 324 // UndoManager is not yet enabled. 325 325 BUGWK87908 SKIP : editing/undomanager = PASS 326 327 // Fail until ENABLE_XHR_RESPONSE_BLOB is enabled after r120042328 // https://bugs.webkit.org/show_bug.cgi?id=88859329 BUGWK88859 : http/tests/xmlhttprequest/response-blob-size.html = TEXT330 326 331 327 // New test infrastructure required -- need isolated worlds -
trunk/LayoutTests/platform/mac/Skipped
r120493 r120574 891 891 # https://bugs.webkit.org/show_bug.cgi?id=88736 892 892 http/tests/security/mixedContent/blob-url-in-iframe.html 893 894 # Fail until ENABLE_XHR_RESPONSE_BLOB is enabled after r120042895 # https://bugs.webkit.org/show_bug.cgi?id=88859896 http/tests/xmlhttprequest/response-blob-size.html -
trunk/LayoutTests/platform/qt/Skipped
r120493 r120574 2513 2513 fast/block/basic/fieldset-stretch-to-legend.html 2514 2514 2515 # Fail until ENABLE_XHR_RESPONSE_BLOB is enabled after r1200422516 # https://bugs.webkit.org/show_bug.cgi?id=888592517 http/tests/xmlhttprequest/response-blob-size.html2518 2519 2515 # [Qt]REGRESSION(r120107): It made http/tests/xmlhttprequest/origin-exact-matching.html fails 2520 2516 # https://bugs.webkit.org/show_bug.cgi?id=88913 -
trunk/LayoutTests/platform/win/Skipped
r120341 r120574 1946 1946 svg/W3C-SVG-1.1-SE/linking-uri-01-b.svg 1947 1947 svg/W3C-SVG-1.1-SE/text-intro-05-t.svg 1948 1949 # Fail until ENABLE_XHR_RESPONSE_BLOB is enabled after r1200421950 # https://bugs.webkit.org/show_bug.cgi?id=888591951 http/tests/xmlhttprequest/response-blob-size.html -
trunk/LayoutTests/platform/wincairo/Skipped
r120177 r120574 2118 2118 # https://bugs.webkit.org/show_bug.cgi?id=86000 2119 2119 http/tests/security/referrer-policy-redirect-link.html 2120 2121 # Fail until ENABLE_XHR_RESPONSE_BLOB is enabled after r1200422122 # https://bugs.webkit.org/show_bug.cgi?id=888592123 http/tests/xmlhttprequest/response-blob-size.html -
trunk/Source/WebCore/ChangeLog
r120572 r120574 1 2012-06-15 Kinuko Yasuda <kinuko@chromium.org> 2 3 XHR_RESPONSE_BLOB is not enabled on some platforms 4 https://bugs.webkit.org/show_bug.cgi?id=88859 5 6 Reviewed by Adam Barth. 7 8 Removing XHR_RESPONSE_BLOB since the current implementation has 9 no platform-specific part. 10 11 Test: http/tests/xmlhttprequest/blob-response-size.html 12 13 * bindings/generic/RuntimeEnabledFeatures.cpp: 14 (WebCore): 15 * bindings/generic/RuntimeEnabledFeatures.h: 16 (RuntimeEnabledFeatures): 17 * bindings/js/JSXMLHttpRequestCustom.cpp: 18 (WebCore::JSXMLHttpRequest::visitChildren): 19 (WebCore::JSXMLHttpRequest::response): 20 * bindings/v8/custom/V8XMLHttpRequestCustom.cpp: 21 (WebCore::V8XMLHttpRequest::responseAccessorGetter): 22 * platform/chromium/PlatformSupport.h: 23 (PlatformSupport): 24 * xml/XMLHttpRequest.cpp: 25 (WebCore::XMLHttpRequest::responseBlob): 26 (WebCore::XMLHttpRequest::setResponseType): 27 (WebCore::XMLHttpRequest::clearResponseBuffers): 28 (WebCore::XMLHttpRequest::didReceiveData): 29 * xml/XMLHttpRequest.h: 30 (XMLHttpRequest): 31 * xml/XMLHttpRequest.idl: 32 1 33 2012-06-17 Martin Robinson <mrobinson@igalia.com> 2 34 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r115341 r120574 71 71 #endif 72 72 73 #if ENABLE(XHR_RESPONSE_BLOB)74 bool RuntimeEnabledFeatures::isXHRResponseBlobEnabled = false;75 #endif76 77 73 #if ENABLE(FILE_SYSTEM) 78 74 bool RuntimeEnabledFeatures::isFileSystemEnabled = false; -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r120030 r120574 170 170 #endif 171 171 172 #if ENABLE(XHR_RESPONSE_BLOB)173 static bool xhrResponseBlobEnabled() { return isXHRResponseBlobEnabled; }174 static void setXHRResponseBlobEnabled(bool isEnabled) { isXHRResponseBlobEnabled = isEnabled; }175 static bool responseBlobEnabled() { return isXHRResponseBlobEnabled; }176 static bool asBlobEnabled() { return isXHRResponseBlobEnabled; }177 #endif178 179 172 #if ENABLE(FILE_SYSTEM) 180 173 static bool fileSystemEnabled(); … … 260 253 static bool isScriptedSpeechEnabled; 261 254 #endif 262 #if ENABLE(XHR_RESPONSE_BLOB)263 static bool isXHRResponseBlobEnabled;264 #endif265 266 255 #if ENABLE(FILE_SYSTEM) 267 256 static bool isFileSystemEnabled; -
trunk/Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp
r117646 r120574 72 72 visitor.addOpaqueRoot(responseArrayBuffer); 73 73 74 #if ENABLE(XHR_RESPONSE_BLOB)75 74 if (Blob* responseBlob = thisObject->m_impl->optionalResponseBlob()) 76 75 visitor.addOpaqueRoot(responseBlob); 77 #endif78 76 79 77 thisObject->m_impl->visitJSEventListeners(visitor); … … 175 173 176 174 case XMLHttpRequest::ResponseTypeBlob: 177 #if ENABLE(XHR_RESPONSE_BLOB)178 175 { 179 176 ExceptionCode ec = 0; … … 185 182 return toJS(exec, globalObject(), blob); 186 183 } 187 #else188 return jsUndefined();189 #endif190 184 191 185 case XMLHttpRequest::ResponseTypeArrayBuffer: -
trunk/Source/WebCore/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
r119070 r120574 81 81 82 82 case XMLHttpRequest::ResponseTypeBlob: 83 #if ENABLE(XHR_RESPONSE_BLOB)84 83 { 85 84 ExceptionCode ec = 0; … … 89 88 return toV8(blob, info.GetIsolate()); 90 89 } 91 #else92 return v8::Undefined();93 #endif94 90 95 91 case XMLHttpRequest::ResponseTypeArrayBuffer: -
trunk/Source/WebCore/platform/chromium/PlatformSupport.h
r119997 r120574 66 66 namespace WebCore { 67 67 68 class AsyncFileSystem;69 68 class Color; 70 69 class Cursor; … … 100 99 static bool cookiesEnabled(const Document*); 101 100 102 #if ENABLE(FILE_SYSTEM)103 static PassOwnPtr<AsyncFileSystem> createAsyncFileSystem();104 #endif105 106 101 // Font --------------------------------------------------------------- 107 102 #if OS(WINDOWS) -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r120168 r120574 265 265 } 266 266 267 #if ENABLE(XHR_RESPONSE_BLOB)268 267 Blob* XMLHttpRequest::responseBlob(ExceptionCode& ec) 269 268 { … … 300 299 return m_responseBlob.get(); 301 300 } 302 #endif303 301 304 302 ArrayBuffer* XMLHttpRequest::responseArrayBuffer(ExceptionCode& ec) … … 343 341 else if (responseType == "document") 344 342 m_responseTypeCode = ResponseTypeDocument; 345 else if (responseType == "blob") { 346 #if ENABLE(XHR_RESPONSE_BLOB) 343 else if (responseType == "blob") 347 344 m_responseTypeCode = ResponseTypeBlob; 348 #endif 349 } else if (responseType == "arraybuffer") { 345 else if (responseType == "arraybuffer") 350 346 m_responseTypeCode = ResponseTypeArrayBuffer; 351 }else347 else 352 348 ec = SYNTAX_ERR; 353 349 } … … 414 410 m_includeCredentials = value; 415 411 } 416 417 #if ENABLE(XHR_RESPONSE_BLOB)418 void XMLHttpRequest::setAsBlob(bool value, ExceptionCode& ec)419 {420 if (m_state != OPENED || m_loader) {421 ec = INVALID_STATE_ERR;422 return;423 }424 425 m_responseTypeCode = value ? ResponseTypeBlob : ResponseTypeDefault;426 }427 #endif428 412 429 413 bool XMLHttpRequest::isAllowedHTTPMethod(const String& method) … … 816 800 m_createdDocument = false; 817 801 m_responseDocument = 0; 818 #if ENABLE(XHR_RESPONSE_BLOB)819 802 m_responseBlob = 0; 820 #endif821 803 m_binaryResponseBuilder.clear(); 822 804 m_responseArrayBuffer.clear(); … … 1137 1119 if (useDecoder) 1138 1120 m_responseBuilder.append(m_decoder->decode(data, len)); 1139 else if (m_responseTypeCode == ResponseTypeArrayBuffer 1140 #if ENABLE(XHR_RESPONSE_BLOB) 1141 || m_responseTypeCode == ResponseTypeBlob 1142 #endif 1143 ) { 1121 else if (m_responseTypeCode == ResponseTypeArrayBuffer || m_responseTypeCode == ResponseTypeBlob) { 1144 1122 // Buffer binary data. 1145 1123 if (!m_binaryResponseBuilder) -
trunk/Source/WebCore/xml/XMLHttpRequest.h
r109635 r120574 84 84 bool withCredentials() const { return m_includeCredentials; } 85 85 void setWithCredentials(bool, ExceptionCode&); 86 #if ENABLE(XHR_RESPONSE_BLOB)87 bool asBlob() const { return m_responseTypeCode == ResponseTypeBlob; }88 void setAsBlob(bool, ExceptionCode&);89 #endif90 86 void open(const String& method, const KURL&, ExceptionCode&); 91 87 void open(const String& method, const KURL&, bool async, ExceptionCode&); … … 106 102 Document* responseXML(ExceptionCode&); 107 103 Document* optionalResponseXML() const { return m_responseDocument.get(); } 108 #if ENABLE(XHR_RESPONSE_BLOB)109 104 Blob* responseBlob(ExceptionCode&); 110 105 Blob* optionalResponseBlob() const { return m_responseBlob.get(); } 111 #endif112 106 113 107 // Expose HTTP validation methods for other untrusted requests. … … 194 188 bool m_async; 195 189 bool m_includeCredentials; 196 #if ENABLE(XHR_RESPONSE_BLOB)197 190 RefPtr<Blob> m_responseBlob; 198 #endif199 191 200 192 RefPtr<ThreadableLoader> m_loader; -
trunk/Source/WebCore/xml/XMLHttpRequest.idl
r107312 r120574 59 59 readonly attribute unsigned short readyState; 60 60 61 // request62 attribute [Conditional=XHR_RESPONSE_BLOB, V8EnabledAtRuntime] boolean asBlob63 setter raises(DOMException);64 65 61 attribute boolean withCredentials 66 62 setter raises(DOMException); … … 98 94 readonly attribute Document responseXML 99 95 getter raises(DOMException); 100 readonly attribute [Conditional=XHR_RESPONSE_BLOB, V8EnabledAtRuntime]Blob responseBlob96 readonly attribute Blob responseBlob 101 97 getter raises(DOMException); 102 98 -
trunk/Source/WebKit/chromium/ChangeLog
r120564 r120574 1 2012-06-15 Kinuko Yasuda <kinuko@chromium.org> 2 3 XHR_RESPONSE_BLOB is not enabled on some platforms 4 https://bugs.webkit.org/show_bug.cgi?id=88859 5 6 Reviewed by Adam Barth. 7 8 Removing XHR_RESPONSE_BLOB since the current implementation has 9 no platform-specific part. 10 11 * src/PlatformSupport.cpp: 12 * src/WebRuntimeFeatures.cpp: 13 (WebKit::WebRuntimeFeatures::enableXHRResponseBlob): 14 (WebKit::WebRuntimeFeatures::isXHRResponseBlobEnabled): 15 1 16 2012-06-17 MORITA Hajime <morrita@google.com> 2 17 -
trunk/Source/WebKit/chromium/src/PlatformSupport.cpp
r119997 r120574 79 79 #include "NativeImageSkia.h" 80 80 81 #include "AsyncFileSystemChromium.h"82 81 #include "BitmapImage.h" 83 82 #include "Cookie.h" … … 207 206 return result; 208 207 } 209 210 // File ------------------------------------------------------------------------211 212 #if ENABLE(FILE_SYSTEM)213 PassOwnPtr<AsyncFileSystem> PlatformSupport::createAsyncFileSystem()214 {215 return AsyncFileSystemChromium::create();216 }217 #endif218 208 219 209 // Font ----------------------------------------------------------------------- -
trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
r120030 r120574 279 279 void WebRuntimeFeatures::enableXHRResponseBlob(bool enable) 280 280 { 281 #if ENABLE(XHR_RESPONSE_BLOB)282 RuntimeEnabledFeatures::setXHRResponseBlobEnabled(enable);283 #endif284 281 } 285 282 286 283 bool WebRuntimeFeatures::isXHRResponseBlobEnabled() 287 284 { 288 #if ENABLE(XHR_RESPONSE_BLOB) 289 return RuntimeEnabledFeatures::xhrResponseBlobEnabled(); 290 #else 291 return false; 292 #endif 285 return true; 293 286 } 294 287
Note: See TracChangeset
for help on using the changeset viewer.