• jingzhao@chromium.org's avatar
    Allow POST method when converting file protocol to http protocol for layout tests. · 90a01718
    jingzhao@chromium.org authored
    When running layout tests on Android, we host test files on a Linux/Mac machine, convert file requests to http requests, and forward http requests from Android to the same port on the host machine.
    
    The following tests use POST method and failed at  DCHECK(params->method == "GET" || params->method.empty()):
     fast/events/popup-allowed-from-gesture-initiated-form-submit.html
     fast/forms/document-write.html
     fast/forms/form-and-frame-interaction-retains-values.html
     fast/forms/form-data-encoding-normalization-overrun.html
     fast/forms/form-post-urlencoded.html
     fast/forms/formmethod-attribute-button-html.html
     fast/forms/formmethod-attribute-input-html.html
     fast/forms/submit-to-url-fragment.html
     fast/forms/xss-auditor-doesnt-crash-on-post-submit.html
     fast/history/form-submit-in-frame-via-onclick.html
     fast/history/form-submit-in-frame.html
     fast/loader/form-submission-after-beforeunload-cancel.html
     fast/loader/form-submit-aborts-parsing.html
     fast/loader/submit-form-while-parsing-1.xhtml
    
    The following test loads an image referred by the test page, and failed at DCHECK(params->referrer.is_empty()):
     http/tests/security/local-image-from-remote-whitelisted.html
    
    BUG=http://b/5655809
    
    Review URL: http://codereview.chromium.org/8632006
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111342 0039d316-1c4b-4281-b951-d872f2087c98
    90a01718
simple_resource_loader_bridge.cc 34.4 KB