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

Issue 1285633003: Change handling of unmatched surrogate pairs (Closed)

Created:
5 years, 4 months ago by eae
Modified:
5 years, 4 months ago
CC:
blink-reviews, Rik, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Change handling of unmatched surrogate pairs Change the way blink handles unmatched or invalid UTF16 surrogate pairs. Formerly once an unmatched on invalid surrogate pair was encountered the processing of the text node was aborted, resulting in the text following the invalid surrogate pair to be trimmed. With this change the unmatched/invalid pair is instead replaced with the unicode replacement character and the rest of the node handled normally. This matches the behavior of Firefox and Internet Explorer. R=bsittler@chromium.org BUG=518039 TEST=fast/text/unmatched-surrogate-pair.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200348

Patch Set 1 #

Total comments: 1

Patch Set 2 : Addressing reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -4 lines) Patch
A LayoutTests/fast/text/unmatched-surrogate-pair.html View 1 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/unmatched-surrogate-pair-expected.html View 1 1 chunk +17 lines, -0 lines 0 comments Download
M Source/platform/fonts/UTF16TextIterator.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/fonts/UTF16TextIterator.cpp View 2 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
eae
5 years, 4 months ago (2015-08-10 18:45:30 UTC) #2
eae
5 years, 4 months ago (2015-08-10 19:59:02 UTC) #4
eae
Made the suggested test changes.
5 years, 4 months ago (2015-08-11 18:08:19 UTC) #6
bsittler
lgtm https://codereview.chromium.org/1285633003/diff/1/LayoutTests/fast/text/unmatched-surrogate-pair.html File LayoutTests/fast/text/unmatched-surrogate-pair.html (right): https://codereview.chromium.org/1285633003/diff/1/LayoutTests/fast/text/unmatched-surrogate-pair.html#newcode20 LayoutTests/fast/text/unmatched-surrogate-pair.html:20: appendLine('Full codepoint, "\u{1F30E}". Prints a globle glyph.'); tiny ...
5 years, 4 months ago (2015-08-11 18:11:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285633003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285633003/40001
5 years, 4 months ago (2015-08-11 18:13:18 UTC) #9
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 4 months ago (2015-08-11 18:13:19 UTC) #11
bsittler
On 2015/08/11 at 18:11:01, bsittler wrote: > lgtm > > https://codereview.chromium.org/1285633003/diff/1/LayoutTests/fast/text/unmatched-surrogate-pair.html > File LayoutTests/fast/text/unmatched-surrogate-pair.html (right): ...
5 years, 4 months ago (2015-08-11 18:16:05 UTC) #12
leviw_travelin_and_unemployed
rs lgtm
5 years, 4 months ago (2015-08-11 18:17:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285633003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285633003/40001
5 years, 4 months ago (2015-08-11 18:18:02 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 19:43:31 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200348

Powered by Google App Engine
This is Rietveld 408576698