Closed Bug 1733561 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 31039 - Fix crash for offscreencanvas when setting font to Math

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Yi Xu <yiyix@chromium.org> wrote:

Fix crash for offscreencanvas when setting font to Math

ConvertFontSize failed to find a font size for font Math. Created
a special case for offscreencanvas to handle Math.

Bug: 1207317

Change-Id: I5256fbecb922cd15521b7e5693ce7f1cbd8880ac

Reviewed-on: https://chromium-review.googlesource.com/3194662
WPT-Export-Revision: ecb1007e70045e42051b0c9e085e822b8eb8304d

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL: 2

Chrome

OK : 2
PASS: 2

Safari

OK : 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/canvas/offscreen/text/2d.text.setFont.mathFont.html
crbug.com/1212190, make sure offscreencanvas doesn't crashh with Math Font: FAIL (Chrome: PASS, Safari: FAIL)
/html/canvas/offscreen/text/2d.text.setFont.mathFont.worker.html
crbug.com/1212190, make sure offscreencanvas doesn't crashh with Math Font: FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/28a2ae4b3cce
[wpt PR 31039] - Fix crash for offscreencanvas when setting font to Math, a=testonly
https://hg.mozilla.org/integration/autoland/rev/fcd297966dec
[wpt PR 31039] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.