[XHR] Use correct TextResourceDecoderOption

Desktop / Chromium - Yutaka Hirano [chromium.org] - 11 October 2017 03:03 EDT

Blink enabled HTML / XML charset detection for HTML-ish / XML-ish responses even when response type is text. This CL fixes the issue.

This CL removes some layout tests. The behavior is tested by wpt/XMLHttpRequest/responsetext-decoding.htm, wpt/XMLHttpRequest/responsedocument-decoding.htm, wpt/XMLHttpRequest/overridemimetype-open-state-force-utf-8.htm and wpt/XMLHttpRequest/overridemimetype-open-state-force-xml.

Bug: 695045 Change-Id: I82b223dd85907350ce1e7787969bd1d4de85aa3a Reviewed-on: https://chromium-review.googlesource.com/701899 Commit-Queue: Yutaka Hirano

47e4fc5 [XHR] Use correct TextResourceDecoderOption
.../responsetext-decoding-expected.txt | 39 ----
...httprequest-html-response-encoding-expected.txt | 5 -
.../xmlhttprequest-html-response-encoding.html | 67 ------
.../xmlhttprequest/response-encoding-expected.txt | 25 ---
.../tests/xmlhttprequest/response-encoding.html | 230 ---------------------
.../Source/core/xmlhttprequest/XMLHttpRequest.cpp | 53 +++--
6 files changed, 32 insertions(+), 387 deletions(-)

Upstream: git.chromium.org


  • Share