Closed Bug 2089395 Opened 18 days ago Closed

[wpt-sync] Sync PR 64430 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=323710

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=323710

WebKit export from bug: [<!---->SVG]<!----> Mutating a display:<!----> contents tspan inside SVG text crashes with anonymous inline wrapper

<pre>
[SVG] Mutating a display: contents tspan inside SVG text crashes with anonymous inline wrapper

RenderTreeUpdater::createTextRenderer wraps a text renderer in an anonymous RenderInline to carry a display: contents style.
Inside SVG text that wrapper has to be a RenderSVGInline, because everything walking SVG text looks for one:

  1. RenderSVGText::subtreeChildWasAdded/subtreeChildWillBeRemoved skip it, so the layout attributes
    cache goes stale and checkLayoutAttributesConsistency asserts on removal, on text insertion and on a display change.
  2. SVGTextLayoutAttributesBuilder and SVGTextMetricsBuilder do not descend into it, so its text is never measured and getStartPositionOfChar() hangs.

Create it as an anonymous RenderSVGInline instead.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=323710">https://bugs.webkit.org/show_bug.cgi?id=323710</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/320865@main">https://commits.webkit.org/320865@main</a>
</pre>

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → Layout
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 259 tests

Status Summary

Firefox

OK : 4[GitHub] 38[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 4[GitHub] 476[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 615[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 616[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 94[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 172[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 173[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 4
PASS: 4

Safari

OK : 4
PASS: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.