Closed Bug 2072451 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62725 - Validate accessor callability in V8ObjectToPropertyDescriptor

Categories

(Core :: DOM: CSS Object Model, 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 62725 into mozilla-central (this bug is closed when the sync is complete).

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

Will Harris <wfh@chromium.org> wrote:

Validate accessor callability in V8ObjectToPropertyDescriptor

V8ObjectToPropertyDescriptor previously omitted checking whether present
get and set attributes are callable or undefined per ECMA-262
ToPropertyDescriptor (steps 12.b and 14.b). During reentrant descriptor
conversion in the ObservableArray defineProperty trap, non-callable
values could be passed to v8::PropertyDescriptor and installed as an
AccessorPair, causing type confusion in V8.

Enforce that present getter and setter properties are either undefined
or callable functions, throwing a TypeError otherwise.

Bug: 557523002
Change-Id: Ia524d3c71cb5bb6085ef1d2bc0af650b55a87e9c

Reviewed-on: https://chromium-review.googlesource.com/8405731
WPT-Export-Revision: ce675edd3440e263abeea54851631f717fa7a9a1

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
PASS: 4
FAIL: 1

Chrome

OK : 1
PASS: 4
FAIL: 1

Safari

OK : 1
PASS: 4
FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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.