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

Issue 2235453002: Text Encoding: Fix "stop on error" for ICU-based codecs (Closed)

Created:
4 years, 4 months ago by jsbell
Modified:
4 years, 4 months ago
CC:
chromium-reviews, blink-reviews-w3ctests_chromium.org, tfarina, blink-reviews, blink-reviews-wtf_chromium.org, jshin+watch_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Text Encoding: Fix "stop on error" for ICU-based codecs Handling of errors when the "stopOnError" flag was set in TextCodecICU::decode() was incorrect; the replacement character was always emitted instead. Align the initialization of the ICU error callback with what i18n/icu_string_conversions.cc does. BUG=607540 R=jshin@chromium.org Committed: https://crrev.com/005842b420cace28845fc552ef6da8086fe527a5 Cr-Commit-Position: refs/heads/master@{#412170}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove explicit default code path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7480 lines) Patch
D third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-fatal-single-byte-expected.txt View 1 chunk +0 lines, -7473 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodecICU.cpp View 1 2 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
jsbell
jshin@ please take a look? https://codereview.chromium.org/2235453002/diff/1/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp File third_party/WebKit/Source/wtf/text/TextCodecICU.cpp (right): https://codereview.chromium.org/2235453002/diff/1/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp#newcode318 third_party/WebKit/Source/wtf/text/TextCodecICU.cpp:318: ucnv_setToUCallBack(m_converter, UCNV_TO_U_CALLBACK_SUBSTITUTE, 0, &m_savedAction, ...
4 years, 4 months ago (2016-08-09 22:27:24 UTC) #3
jsbell
jshin@ - ping!
4 years, 4 months ago (2016-08-11 16:47:45 UTC) #6
jungshik at Google
LGTM https://codereview.chromium.org/2235453002/diff/1/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp File third_party/WebKit/Source/wtf/text/TextCodecICU.cpp (right): https://codereview.chromium.org/2235453002/diff/1/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp#newcode318 third_party/WebKit/Source/wtf/text/TextCodecICU.cpp:318: ucnv_setToUCallBack(m_converter, UCNV_TO_U_CALLBACK_SUBSTITUTE, 0, &m_savedAction, &m_savedContext, &err); On 2016/08/09 ...
4 years, 4 months ago (2016-08-12 07:20:42 UTC) #7
jsbell
jshin@ - updated the CL to not have the "else" paths. Can you do one ...
4 years, 4 months ago (2016-08-12 18:05:50 UTC) #10
jungshik at Google
On 2016/08/12 18:05:50, jsbell wrote: > jshin@ - updated the CL to not have the ...
4 years, 4 months ago (2016-08-16 00:10:10 UTC) #13
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/2235453002/20001
4 years, 4 months ago (2016-08-16 01:59:55 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/238583)
4 years, 4 months ago (2016-08-16 02:06:29 UTC) #17
jsbell
haraken@ - can you review as wtf OWNER ? (and cq if lg?)
4 years, 4 months ago (2016-08-16 02:25:33 UTC) #19
haraken
LGTM
4 years, 4 months ago (2016-08-16 02:37:35 UTC) #20
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/2235453002/20001
4 years, 4 months ago (2016-08-16 02:38:05 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-16 05:11:29 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 05:12:46 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/005842b420cace28845fc552ef6da8086fe527a5
Cr-Commit-Position: refs/heads/master@{#412170}

Powered by Google App Engine
This is Rietveld 408576698