Closed Bug 1727781 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 30197 - Stack-overflow in blink::IsSpaceLike

Categories

(Core :: MathML, task, P4)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Fr\xc3\xa9d\xc3\xa9ric Wang <fwang@igalia.com>' wrote:

Stack-overflow in blink::IsSpaceLike

The IsSpaceLike and GetCoreOperator functions receive a NGBlockNode node
parameter. When it corresponds to a grouping element or an \<mpadded>
element in the DOM tree, then these functions browse its children,
casting each one to a NGBlockNode. This works for the grouping/\<mpadded>
elements with math display (since they blockify their children) but may
hit "Security DCHECK failed: IsA\<Derived>(from)" for other display
values. To address that issue, an early exit is added in IsSpaceLike
similar to the one that already exists in GetCoreOperator. See [1] for
the related specification discussion.

[1] https://github.com/w3c/mathml-core/issues/108

Bug: 1243691, 6606, 1124298
Change-Id: I4ddd4d57b20ffce0e6ef6fd2cf478b8c77363440

Reviewed-on: https://chromium-review.googlesource.com/3122134
WPT-Export-Revision: 3c40bf54247298f73c54d7b163fbc3b5b8471eca

Component: web-platform-tests → MathML
Product: Testing → Core

CI Results

Ran 0 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

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c9a96f05236 [wpt PR 30197] - Stack-overflow in blink::IsSpaceLike, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.