xhr.send(URLSearchParams) should align default Content-Type header field with Chrome and Firefox
Created attachment 432453 [details] Patch
Created attachment 432492 [details] Patch
Comment on attachment 432492 [details] Patch r=me
Committed r279380 (239245@main): <https://commits.webkit.org/239245@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432492 [details].
<rdar://problem/79927791>
Comment on attachment 432492 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432492&action=review > LayoutTests/imported/w3c/web-platform-tests/xhr/setrequestheader-content-type-expected.txt:-34 > -PASS ReadableStream request respects setRequestHeader("") > -FAIL ReadableStream request with under type sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "Content-Type: text/plain;charset=UTF-8\n" > -FAIL ReadableStream request keeps setRequestHeader() Content-Type and charset assert_equals: expected "Content-Type: application/xml;charset=ASCII\n" but got "Content-Type: application/xml;charset=UTF-8\n" I'm curious about how these lines disappeared.
The test had been marked as failing, then updated, and nobody noticed those tests were removed.