Closed Bug 1888869 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 45441 - Reland "css-text: Fix an issue on justification with a bidi isolate control"

Categories

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

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Kent Tamura <tkent@chromium.org> wrote:

Reland "css-text: Fix an issue on justification with a bidi isolate control"

This is a reland of commit aea8539fd737b4468aab83c14c656662b1322517

A change from the original commit:

  • Updated TextRun::NormalizedUTF16().
    Because the coverage of TreatAsZeroWidthSpaceInComplexScript() was
    expanded by the original commit, NormalizedUTF16() could replace a
    non-BMP character with a BMP character. It caused an access to
    uninitialized area in a StringBuffer. The function doesn't replace
    non-BMP characters in this CL.

Original change's description:

css-text: Fix an issue on justification with a bidi isolate control

Do not reset is_after_expansion state by a default ignorable code
point, which includes bidi controls.

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

Bug: 331680200, 331834503
Change-Id: I5c76573203b99045fe7350b87f091ff13b2b5a67

Reviewed-on: https://chromium-review.googlesource.com/5400825
WPT-Export-Revision: a7fc01e77a75ef7cac94621a3a16054259e2f76d

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

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/267a33f6b950 [wpt PR 45441] - Reland "css-text: Fix an issue on justification with a bidi isolate control", a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.