• jianli@chromium.org's avatar
    XMLHttpRequestUpload events do not fire when sending a raw file or FormData object. · b4605b49
    jianli@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=37771
    
    Reviewed by David Levin.
    
    WebCore:
    
    Test: http/tests/local/formdata/upload-events.html
    
    * xml/XMLHttpRequest.cpp:
    (WebCore::XMLHttpRequest::createRequest):
    
    LayoutTests:
    
    Add a layout test to test upload events firing.
    
    * http/tests/local/formdata/resources/send-form-data-common.js:
    (dumpResponse):
    (sendFormData):
    (testSendingFormData):
    * http/tests/local/formdata/script-tests/send-form-data-with-sliced-file.js:
    * http/tests/local/formdata/script-tests/send-form-data.js:
    * http/tests/local/formdata/script-tests/upload-events.js: Added.
    * http/tests/local/formdata/upload-events-expected.txt: Added.
    * http/tests/local/formdata/upload-events.html: Added.
    * platform/gtk/Skipped: Skip the new test because eventSender.beginDragWithFiles is not supported in gtk platform.
    * platform/qt/Skipped: Skip the new test because eventSender.beginDragWithFiles is not supported in qt platform.
    * platform/win/Skipped: Skip the new test because eventSender.beginDragWithFiles is not supported in win platform.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b4605b49
Skipped 227 KB