Mark the charset parsing methods in HTTPParser as deprecated

Desktop / Chromium - Takeshi Yoshino [chromium.org] - 15 July 2017 02:43 EDT

FindCharsetInMediaType() looks for a substring that is likely to be indicating the charset parameter loosely without performing ABNF
validation. New code should use the strict version in HttpUtil.

Bug: 674329, 743311 Change-Id: I9faa60dcb63e983a62aff74601ac16257da28e80 Reviewed-on: https://chromium-review.googlesource.com/564749 Commit-Queue: Takeshi Yoshino

ef9c803 Mark the charset parsing methods in HTTPParser as deprecated
.../Source/core/xmlhttprequest/XMLHttpRequest.cpp | 66 +++++++++++++++++++++-
.../WebKit/Source/platform/network/HTTPParsers.cpp | 58 -------------------
.../WebKit/Source/platform/network/HTTPParsers.h | 6 +-
3 files changed, 66 insertions(+), 64 deletions(-)

Upstream: git.chromium.org


  • Share