Bug 125889 - http/tests/xmlhttprequest/post-content-type.html has wrong expectation
Summary: http/tests/xmlhttprequest/post-content-type.html has wrong expectation
Status: RESOLVED DUPLICATE of bug 11049
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-12-17 16:52 PST by Ryosuke Niwa
Modified: 2022-10-04 18:19 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-12-17 16:52:29 PST
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.
Comment 1 Ahmad Saleem 2022-10-04 15:14:06 PDT
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!
Comment 2 Alexey Proskuryakov 2022-10-04 18:19:54 PDT
This was done as part of bug 11049.

*** This bug has been marked as a duplicate of bug 11049 ***