Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 2803563004: Avoid using language hint in encoding detection (Closed)

Created:
3 years, 8 months ago by Jinsuk Kim
Modified:
3 years, 8 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch, loading-reviews+parser_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid using language hint in encoding detection In general, avoid passing language hint to encoding detector. This helps obtain more deterministic detection result regardless of user system locale. Local file resources still benefit from the hint, which is made an exception. BUG=682978 Review-Url: https://codereview.chromium.org/2803563004 Cr-Commit-Position: refs/heads/master@{#462412} Committed: https://chromium.googlesource.com/chromium/src/+/9e51d07999515ab5f8567ba8b446e316137eb0b8

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp View 1 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextEncodingDetectorTest.cpp View 1 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Jinsuk Kim
3 years, 8 months ago (2017-04-06 07:21:59 UTC) #4
tkent
https://codereview.chromium.org/2803563004/diff/1/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp File third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp (right): https://codereview.chromium.org/2803563004/diff/1/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp#newcode168 third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp:168: if (hintUrl.protocol() == "file" || !hintUrl.isEmpty()) { The code ...
3 years, 8 months ago (2017-04-06 07:29:13 UTC) #5
Jinsuk Kim
https://codereview.chromium.org/2803563004/diff/1/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp File third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp (right): https://codereview.chromium.org/2803563004/diff/1/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp#newcode168 third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp:168: if (hintUrl.protocol() == "file" || !hintUrl.isEmpty()) { On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 08:10:25 UTC) #6
tkent
lgtm
3 years, 8 months ago (2017-04-06 08:13:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2803563004/20001
3 years, 8 months ago (2017-04-06 10:12:49 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 10:17:56 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/9e51d07999515ab5f8567ba8b446...

Powered by Google App Engine
This is Rietveld 408576698