Closed Bug 1917240 Opened 1 year ago Closed 11 months ago

[wpt-sync] Sync PR 48014 - [css-typed-om] Don't crash for unrepresentable shorthands

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Anders Hartvoll Ruud <andruud@chromium.org> wrote:

[css-typed-om] Don't crash for unrepresentable shorthands

ComputedStylePropertyMap::SerializationForShorthand for some reason
expects that CSSValueFromComputedStyle can't return nullptr, when in
reality this can easily happen as soon as you have a shorthand
which can't represent the currently held longhands.

We have likely exercised this code for a long time, but ever since
CL:5577948, we begun crashing, since NOTREACHED() is fatal now.

Looking briefly over the spec, it is not defined what to return in
this situation, hence adding a crash test which doesn't make assertions
about the return value.

Fixed: 364443014
Change-Id: I5c6bcc4ef75285194aed2fc0a6b57429655c7610
Reviewed-on: https://chromium-review.googlesource.com/5840236
WPT-Export-Revision: 2c96bfe4713eff4573f494f890746abbfa1694d0

Component: web-platform-tests → DOM: CSS Object Model
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://hg.mozilla.org/integration/autoland/rev/1ac548ed1499 [wpt PR 48014] - [css-typed-om] Don't crash for unrepresentable shorthands, a=testonly
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.