Closed Bug 2041656 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 60099 - Fix crash when `text-transform` change the text length

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 60099 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/60099
Details from upstream follow.

Koji Ishii <kojii@chromium.org> wrote:

Fix crash when text-transform change the text length

When the text-transform property change the text length,
InlineNode simply adjusted the text length for first-line.
This could cause crashes in LineBreaker::HandleControlItem
because InlineItem and text could be out of sync.

As Blink now supports TextOffsetMap in ApplyTextTransform,
this patch supports adjusting InlineItem and
InlineItemSegments using the TextOffsetMap.

Fixed: 449295641
Change-Id: I8317e202a1007c6c604187134e31e4ebbcd6d136
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7867142
Commit-Queue: Koji Ishii \<kojii@chromium.org>
Commit-Queue: Kent Tamura \<tkent@chromium.org>
Auto-Submit: Koji Ishii \<kojii@chromium.org>
Reviewed-by: Kent Tamura \<tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1634730}

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS : 1

Chrome

CRASH: 1

Safari

PASS : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6210647c0791 https://hg.mozilla.org/integration/autoland/rev/28c7de41b29a [wpt PR 60099] - Fix crash when `text-transform` change the text length, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.