[wpt-sync] Sync PR 25403 - [mathml] Fix dictionary category for unknown operators with explicit form
Categories
(Core :: MathML, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 25403 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/25403
Details from upstream follow.
b'Fr\xc3\xa9d\xc3\xa9ric Wang <fwang@igalia.com>' wrote:
[mathml] Fix dictionary category for unknown operators with explicit form
MathMLOperatorElement::ComputeDictionaryCategory was wrongly implemented
in [1] and returns an unknown category for an operator that is not in
the dictionary AND has an explicit form attribute. This caused a crash
when the function was finally used in [2] and [3].This CL fixes that mistake and adds a DCHECK after the unique call to
ComputeDictionaryCategory to ensure the category is not unknown.
Additionally, the documentation of the corresponding low-level
platform/text API is updated to make clear it never returns an unknown
category.WPT tests are added, one of them contains an munderover whose base is an
operator outside the dictionary with an explicit form, allowing to
ensure no crash happens for the code added in [2] [3]. Another one
verifies default operator spacing and will cover the code added in [4].[1] https://chromium-review.googlesource.com/c/chromium/src/+/2368362
[2] https://chromium-review.googlesource.com/c/chromium/src/+/2390760
[3] https://chromium-review.googlesource.com/c/chromium/src/+/2383023
[4] https://chromium-review.googlesource.com/c/chromium/src/+/2390652Bug: 6606, 1124617
Change-Id: Ic6ba0b663d14634ca5c66070a5b3cfc2eaa3d198Reviewed-on: https://chromium-review.googlesource.com/2390633
WPT-Export-Revision: b732994f8a6d2da66e5cc0c0b1c830f82a3a263a
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests
Status Summary
Firefox
PASS: 2
Chrome
FAIL: 2
Safari
PASS: 2
Links
Updated•1 year ago
|
Description
•