[wpt-sync] Sync PR 62725 - Validate accessor callability in V8ObjectToPropertyDescriptor
Categories
(Core :: DOM: CSS Object Model, task, P4)
Tracking
()
| 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: Ia524d3c71cb5bb6085ef1d2bc0af650b55a87e9cReviewed-on: https://chromium-review.googlesource.com/8405731
WPT-Export-Revision: ce675edd3440e263abeea54851631f717fa7a9a1
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=92608
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
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
Details
New Tests That Don't Pass
- /css/cssom/adoptedstylesheets-observablearray.html [wpt.fyi]
- adoptedStyleSheets defineProperty should reject accessors that become non-callable during descriptor conversion:
FAIL(Chrome:FAIL, Safari:FAIL)
- adoptedStyleSheets defineProperty should reject accessors that become non-callable during descriptor conversion:
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ecfffe084748
https://hg.mozilla.org/mozilla-central/rev/dcff5117db87
Description
•