Closed Bug 1897864 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 46388 - Fix Null Dereference in css_parsing_utils

Categories

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

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Sam Davis Omekara <samomekarajr@microsoft.com> wrote:

Fix Null Dereference in css_parsing_utils

This CL addresses a null pointer dereference issue within the
ConsumeColorContrast functions located in css_parsing_utils.cc.
Previously, a null dereference occurred when the code attempted to
retrieve the color provider when the document was null. To resolve
this, the updated code now includes a validation check to ensure the
document object is valid before calling the GetColorProviderForPainting
method.

Bug: 337069153
Change-Id: Ieee6c0e3602b25e8b149c93643e4d55265e4467c
Reviewed-on: https://chromium-review.googlesource.com/5497219
WPT-Export-Revision: 7b023a66e61ed2f526f92654a9bdbea6c03c79f7

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 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/f2548197a03d [wpt PR 46388] - Fix Null Dereference in css_parsing_utils, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.