Closed Bug 2073062 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62761 - Allow downcasting CSSLightDarkValuePair and CSSParamValuePair to CSSValuePair

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

moonira <moonira@google.com> wrote:

Allow downcasting CSSLightDarkValuePair and CSSParamValuePair to CSSValuePair

CSSLightDarkValuePair and CSSParamValuePair derive from CSSValuePair,
but DowncastTraits\<CSSValuePair> checks CSSValue::IsValuePair(), which
previously only checked for kValuePairClass. As a result, downcasting
via To\<CSSValuePair> failed a CHECK in casting.h when called on
derived instances (such as in CSSValue::HasRandomFunctions() when
evaluating light-dark() animations for compositing).

Fixed: 561828148
Change-Id: I2a6777553314dcd605b4767de97db6cb7bc16886
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8410130
Auto-Submit: Munira Tursunova \<moonira@google.com>
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1699576}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 2 tests

Status Summary

Firefox

PASS : 1[GitHub] 2[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-linux2204-64-wayland-opt, 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]
TIMEOUT: 2

Chrome

CRASH : 1

Safari

PASS : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-color/crashtests/light-dark-animation-crash.html [wpt.fyi]: PASS [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-linux2204-64-wayland-opt, 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, GitHub], TIMEOUT [Gecko-linux2204-64-wayland-debug] (Chrome: CRASH, Safari: PASS)
  • /css/css-color/crashtests/stop-color-invalid-rgb.html [wpt.fyi]: PASS [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-linux2204-64-wayland-opt, 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], TIMEOUT [Gecko-linux2204-64-wayland-debug]
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.