-
ch.dumez@sisa.samsung.com authored
https://bugs.webkit.org/show_bug.cgi?id=119714 Reviewed by Alexey Proskuryakov. Source/WebCore: On request error, fire events on the XMLHttpRequestUpload object before the XMLHttpRequest object as per the latest specification: http://xhr.spec.whatwg.org/#request-error This specification change was made in Sept 2010: http://dev.w3.org/cvsweb/2006/webapi/XMLHttpRequest-2/Overview.src.html.diff?r1=1.138;r2=1.139;f=h It addresses the following comment: http://lists.w3.org/Archives/Public/public-webapps/2010JulSep/0777.html IE10 and since recently Blink behave according to specification but WebKit was firing the events on the XMLHttpRequest object BEFORE the XMLHttpRequestUpload object in case of 'network error' or 'abort error'. WebKit was however behaving according to specification in case of 'timeout error', which was inconsistent. Test: http/tests/xmlhttprequest/upload-request-error-event-order.html * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::networkError): (WebCore::XMLHttpRequest::abortError): LayoutTests: Add a layout test to validate the order in which the events are fired in case of a xhr request error. Also update an existing test which was relying on the outdated firing order. * http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt: * http/tests/xmlhttprequest/simple-cross-origin-progress-events.html: * http/tests/xmlhttprequest/upload-request-error-event-order-expected.txt: Added. * http/tests/xmlhttprequest/upload-request-error-event-order.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
205dab32