Closed Bug 1846207 Opened 1 year ago Closed 1 year ago

lineTo() renders an extra dotted line on the canvas

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 116
defect

Tracking

()

RESOLVED DUPLICATE of bug 1841020

People

(Reporter: mmcleric, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached file canvas-bug.html (deleted) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0

Steps to reproduce:

Drawing on a canvas with lineTo() sometimes renders a weird dotted line with unrelated coordinates.

I'm attaching the HTML file with a minimal version that I could come up with; here's a codepen version with a similar code: https://codepen.io/berekuk/pen/OJarJeY?editors=1010

Platform: Firefox Developer Edition, macOS M1 Pro (I'm not sure if this problem is macOS-specific).

Note: this happens only on some paths and is extremely sensitive to coordinate changes; if I slightly change any number in a sequence, the line often (but not always) disappears.

Actual results:

The requested line is drawn, but an extra dotted line going in an unrelated direction appears.

Expected results:

No dotted line should be drawn.

Component: Untriaged → Graphics: Canvas2D
Product: Firefox → Core

Can repro on Windows11x64 by enabling gpu-canvas. Can not repro if I enable gpu-canvas and disable aa-stroke.

Status: UNCONFIRMED → NEW
Ever confirmed: true

:lsalzman, since you are the author of the regressor, bug 1803604, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)

Set release status flags based on info from the regressing bug 1803604

:lsalzman can you help with the severity/priority on this one?

Flags: needinfo?(lsalzman)

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)

I think this might get fixed by bug 1841020

Looks fixed to me.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1841020
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: