Closed Bug 2079714 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63374 - [HiC] Draw nothing and return for non-finite rects

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Stephen Chenney <schenney@chromium.org> wrote:

[HiC] Draw nothing and return for non-finite rects

Canvas 2D APIs are all defined to return without drawing when input
sizes or positions are non-finite. Make it so for HTML-in-Canvas APIs.

WebGL/GPU APIs in general due not use floats, so do not have prior art
around NaN/Infinity. In that case, throw a DOMException on Nan/Infinity
in src rects.

Bug: 565835895
Change-Id: Ic0d303ab9879ce9051821d69c671b5a641a45c27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8506820
Commit-Queue: Stephen Chenney \<schenney@chromium.org>
Reviewed-by: Stefan Zager \<szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1713769}

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 148 tests and 6 subtests

Status Summary

Firefox

OK : 3[GitHub] 136[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 12
FAIL : 3[GitHub] 236[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1
ERROR : 8
NOTRUN : 18

Chrome

OK : 3
PASS : 1
FAIL : 2

Safari

OK : 3
FAIL : 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: