Bug 125889
| Summary: | http/tests/xmlhttprequest/post-content-type.html has wrong expectation | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap |
| Priority: | P2 | Keywords: | BlinkMergeCandidate |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ryosuke Niwa
Consider merging https://chromium.googlesource.com/chromium/blink/+/dc19721e036c668389d06ec7de8ef9917cc04a29
if the comment below is correct.
Update outdated XHR layout test.
The explanation in the HTML file says the expected Content-Type is
application/xml, but it actually is text/plain. This is correct
according to the XHR spec, and application/xml was legacy WebKit behavior.
The HTML file also references a WebKit bug that specifies the old
behavior, and will be updated to reference a Chromium bug for the
correct behavior.
The test passed before and will still pass after this test. However,
running it manually in the browser will be less confusing.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
Webkit GitHub - Test Link - https://github.com/WebKit/WebKit/blob/8afe31a018b11741abdf9b4d5bb973d7c1d9ff05/LayoutTests/http/tests/xmlhttprequest/post-content-type.html
Only difference is following lines:
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=3565">bug 3565</a>
- posting data via XMLHttpRequest doesn't work (wrong Content-Type).</p>
rniwa@webkit.org / ap@webkit.org - Do we need to update this? Thanks!
Alexey Proskuryakov
This was done as part of bug 11049.
*** This bug has been marked as a duplicate of bug 11049 ***