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

Issue 1979103003: Revert "Reland "UTF-8 detector for pages missing encoding info"" (Closed)

Created:
4 years, 7 months ago by Jinsuk Kim
Modified:
4 years, 7 months ago
CC:
aelias_OOO_until_Jul13, blink-reviews, blink-reviews-html_chromium.org, blink-reviews-wtf_chromium.org, chromium-reviews, dglazkov+blink, jshin+watch_chromium.org, kinuko+watch, Mikhail, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert "Reland "UTF-8 detector for pages missing encoding info"" UTF-8 detector introduced in crrev.com/1890103002 is suspected to cause a couple of bugs due to UTF-8 encoding detection being applied to wider ranges of web documents. It may have caused overall page loading time regression by 5% reported via Omaha PageLoad.Timing2.NavigationToFirstContentfulPaint. (Update: the regression was caused by something else) The other bug was confirmed to have been caused by the CL since the detection changed (albeit correctly) the encoding of the documents that had not been affected before. An alternative to address them would be narrow the scope of the encoding detector but it defeats one of the the goals of the UTF-8 detection expected to set the previously misinterpreted encodings right for more documents. crrev.com/1960943002 I'm reverting the CL in the hope that the bugs will go away before branching to M52 scheduled this week. The plan is bring CED to light, substitute ICU and turn on the automatic encoding detection by default. CED is much more efficient than ICU, and can potentially eliminate the need for UTF-8 detection. I'll evaluate the usefulness of UTF-8 encoding detection afterwards. This reverts commit 57139d64c5b98142ca9305792f39ae23a4950375. BUG=609053 Committed: https://crrev.com/1673e2f6087df0f802117110dda2bf6b42b56ef4 Cr-Commit-Position: refs/heads/master@{#393957}

Patch Set 1 #

Patch Set 2 : layout test failure #

Total comments: 1

Patch Set 3 : rebaselining #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -283 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/encoding/unlabelled-non-ascii-utf8.html View 1 chunk +0 lines, -47 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/encoding/unlabelled-non-ascii-utf8-expected.html View 1 chunk +0 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h View 2 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp View 4 chunks +26 lines, -43 lines 0 comments Download
D third_party/WebKit/Source/core/html/parser/TextResourceDecoderTest.cpp View 1 chunk +0 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextEncodingDetector.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/UTF8.h View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/UTF8.cpp View 1 chunk +0 lines, -18 lines 0 comments Download
D third_party/WebKit/Source/wtf/text/UTF8Test.cpp View 1 chunk +0 lines, -63 lines 0 comments Download
M third_party/WebKit/Source/wtf/wtf.gypi View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
Jinsuk Kim
4 years, 7 months ago (2016-05-16 06:17:42 UTC) #2
tkent
Please handle imported/web-platform-tests/html/semantics/interfaces.html failure.
4 years, 7 months ago (2016-05-16 06:25:41 UTC) #3
Jinsuk Kim
Fixed the failing test. The other failing tests look like flaky.
4 years, 7 months ago (2016-05-16 08:39:19 UTC) #4
tkent
https://codereview.chromium.org/1979103003/diff/20001/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interfaces.html File third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interfaces.html (right): https://codereview.chromium.org/1979103003/diff/20001/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interfaces.html#newcode2 third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interfaces.html:2: <meta charset=utf-8> Do no modify imported tests. Such changes ...
4 years, 7 months ago (2016-05-16 08:43:55 UTC) #5
Jinsuk Kim
On 2016/05/16 08:43:55, tkent wrote: > https://codereview.chromium.org/1979103003/diff/20001/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interfaces.html > File > third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interfaces.html > (right): > > ...
4 years, 7 months ago (2016-05-16 09:24:41 UTC) #6
tkent
lgtm
4 years, 7 months ago (2016-05-16 12:09:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979103003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979103003/80001
4 years, 7 months ago (2016-05-16 20:47:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979103003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979103003/80001
4 years, 7 months ago (2016-05-16 21:47:22 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 7 months ago (2016-05-16 22:43:45 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 22:44:42 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1673e2f6087df0f802117110dda2bf6b42b56ef4
Cr-Commit-Position: refs/heads/master@{#393957}

Powered by Google App Engine
This is Rietveld 408576698