Closed Bug 2056612 Opened 4 months ago Closed 4 months ago

[wpt-sync] Sync PR 61444 - Fix outline painting crash with <area> outside flat tree

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Fix outline painting crash with <area> outside flat tree

With GetComputedStyleOutsideFlatTree disabled, EnsureComputedStyle()
returns nullptr ComputedStyle for elements outside the flat tree
(non-slotted host children).

This is a regression from when we allowed computing non-empty styles
outside the flat tree, but neither Firefox, nor Safari, picks up this
outline color.

Bug: 531745321
Change-Id: I61bbce0ade10e057f0024d5cb190476db29032ef
Reviewed-on: https://chromium-review.googlesource.com/8126000
WPT-Export-Revision: b9ad55f784f270ceb9b8d170c4eca627d5f1b721

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 6 tests and 11 subtests

Status Summary

Firefox

OK : 5
PASS : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 34[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]
FAIL : 42

Chrome

CRASH: 1

Safari

PASS : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/embedded-content/the-area-element/area-coords.html [wpt.fyi]
    • COMMA: "2,2,10,10" (rect): FAIL
    • SEMICOLON: "2;2;10;10" (rect): FAIL
    • SPACE: "2 2 10 10" (rect): FAIL
    • TAB: "2\t2\t10\t10" (rect): FAIL
    • FORM FEED: "2\f2\f10\f10" (rect): FAIL
    • LINE FEED: "2\n2\n10\n10" (rect): FAIL
    • CARRIGAGE RETURN: "2\r2\r10\r10" (rect): FAIL
    • abc between numbers: "2a2b20c20,2,10,10" (rect): FAIL
    • COLON between numbers: "2:2:20:20,2,10,10" (rect): FAIL
    • U+0000 between numbers: "2\02\020\020,2,10,10" (rect): FAIL
    • leading COMMA: ",2,2,10,10" (rect): FAIL
    • leading SPACE: " 2,2,10,10" (rect): FAIL
    • leading SEMICOLON: ";2,2,10,10" (rect): FAIL
    • PERCENT: "2%,2%,10%,10%" (rect): FAIL
    • CSS units: "2in,2in,10cm,10cm" (rect): FAIL
    • float: "1.4,1.4,10,10" (rect): FAIL
    • number starting with PERIOD: ".4,.4,10,10" (rect): FAIL
    • sci-not: "2,2,1e1,1e1" (rect): FAIL
    • leading/trailing garbage: "='2,2,10,10' " (rect): FAIL
    • non-ascii garbage: "“2,2,10,10"" (rect): FAIL
    • several consecutive separators: ",,2;,;2,;,10 \t\r\n10;;" (rect): FAIL
    • one too many numbers, trailing COMMA: "100,100,120,100,100,120,300," (poly): FAIL
  • /html/semantics/embedded-content/the-area-element/area-processing.html [wpt.fyi]
    • negative: "-10,-10,10,10" (rect): FAIL
    • first > third: "10,2,2,10" (rect): FAIL
    • second > fourth: "2,10,10,2" (rect): FAIL
    • first > third, second > fourth: "10,10,2,2" (rect): FAIL
    • negative: "-10,-10,-10,-10" (default): FAIL
    • one too many numbers: "100,100,120,100,100,120,300" (poly): FAIL
    • even-odd rule: "100,100,200,100,100,200,150,50,200,200" (poly): FAIL
  • /html/semantics/embedded-content/the-area-element/area-shape.html [wpt.fyi]
    • missing value default: "2,2,10,10" (null): FAIL
    • invalid value default: "2,2,10,10" (foobar invalid): FAIL
    • invalid value default: "2,2,10,10" (): FAIL
    • empty string: "" (default): FAIL
    • omitted coords: null (DEFAULT): FAIL
    • simple: "2,2,10,10" (rect): FAIL
    • simple: "2,2,10,10" (rectangle): FAIL
    • simple: "20,40,10" (circle): FAIL
    • simple: "20,40,10" (circ): FAIL
    • simple: "20,40,10" (CIRCLE): FAIL
    • simple: "20,40,10" (CIRC): FAIL
    • simple: "100,100,120,100,100,120" (poly): FAIL
    • simple: "100,100,120,100,100,120" (polygon): FAIL
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dea9399693fe https://hg.mozilla.org/integration/autoland/rev/745190d56caa [wpt PR 61444] - Fix outline painting crash with <area> outside flat tree, a=testonly
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Closed: 4 months ago → 4 months ago
You need to log in before you can comment on or make changes to this bug.