New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 746265 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Leaves the project on 2018/03/02
Closed: Jul 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

XHR should use the Content-Type extracted from the body only when there is no Content-Type request header set

Project Member Reported by tyoshino@chromium.org, Jul 19 2017

Issue description

Components: Blink>Network>XHR
Project Member

Comment 2 by bugdroid1@chromium.org, Jul 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ce0a0542f8452b90aa3d21d2c8843dff69680040

commit ce0a0542f8452b90aa3d21d2c8843dff69680040
Author: Takeshi Yoshino <tyoshino@chromium.org>
Date: Tue Jul 25 20:43:16 2017

[XHR] Use the Content-Type extracted from the body only when there is no Content-Type request header set

This patch also changes the WPT files:
- replaced responseType with actual as it's confusing with the
  responseType attribute of the XHR
- Adds one more Blob test that passes a type argument to the Blob
  constructor to really check that setRequestHeader("") is respected
- changed the HTTP header field validation in inspect-headers.py to
  accept a header with no space right next to the colon. This is spec
  conformant and Chrome does so. See the OWS in the header-field ABNF in
  RFC 7230.

This patch fixes the corresponding test items in
setrequestheader-content-type.htm but there are still some items failing
in it. So, we cannot remove it from TestExpectations yet.

Bug:  746265 , 626703
Change-Id: I9e31453f5b046da336ab3af99d931277100c1d2e
Reviewed-on: https://chromium-review.googlesource.com/577341
Commit-Queue: Takeshi Yoshino <tyoshino@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#489418}
[modify] https://crrev.com/ce0a0542f8452b90aa3d21d2c8843dff69680040/third_party/WebKit/LayoutTests/TestExpectations
[modify] https://crrev.com/ce0a0542f8452b90aa3d21d2c8843dff69680040/third_party/WebKit/LayoutTests/external/wpt/XMLHttpRequest/resources/inspect-headers.py
[add] https://crrev.com/ce0a0542f8452b90aa3d21d2c8843dff69680040/third_party/WebKit/LayoutTests/external/wpt/XMLHttpRequest/setrequestheader-content-type-expected.txt
[modify] https://crrev.com/ce0a0542f8452b90aa3d21d2c8843dff69680040/third_party/WebKit/LayoutTests/external/wpt/XMLHttpRequest/setrequestheader-content-type.htm
[modify] https://crrev.com/ce0a0542f8452b90aa3d21d2c8843dff69680040/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
[modify] https://crrev.com/ce0a0542f8452b90aa3d21d2c8843dff69680040/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h

Status: Fixed (was: Started)
Blocking: -626703

Sign in to add a comment