Closed Bug 1727980 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 30220 - Clamp the infinity parsed value from html_dimension

Categories

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

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Seokho Song <0xdevssh@gmail.com>' wrote:

Clamp the infinity parsed value from html_dimension

The DCHECK(CSSCalcInfinityAndNaNEnabled() || std::isfinite(num)) in CSSNumericLiteralValue::Create could be failure when html_dimension parse the large number string.

Therefore, add a clamping for html_dimension to prevent infinity CSSNumericLiteralValue creation.

Bug: 1243557
Change-Id: I24a0736d1641a088a5e9f21f3ce4a043d805fa94
Reviewed-on: https://chromium-review.googlesource.com/3121744
WPT-Export-Revision: e4dd0332d1f01850dc7ea03ecf35d30106092aaa

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 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 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/34bf1ab6b014
[wpt PR 30220] - Clamp the infinity parsed value from html_dimension, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.