Closed Bug 1846613 Opened 2 years ago Closed 2 years ago

Chart elements are rendered incorrectly on chartjs.org

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 116
Desktop
Windows
defect

Tracking

()

VERIFIED FIXED
118 Branch
Tracking Status
relnote-firefox --- 116+
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox116 + verified
firefox117 + verified
firefox118 + verified

People

(Reporter: ksenia, Assigned: jrmuizel)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(3 files)

Attached image chartjs.png

This was originally reported in https://github.com/webcompat/web-bugs/issues/124731

To reproduce, visit https://www.chartjs.org/docs/latest/samples/bar/border-radius.html in Firefox Nightly or release on Windows

Expected:
Vertical bar charts are displayed with 2 border radius variations

Actual:
Border radius is applied incorrectly

Note: The issue is not reproducible on MacOS.

From mozregression:
Differential Revision: https://phabricator.services.mozilla.com/D181542
2023-08-01T17:00:51.622000: DEBUG : Did not find a branch, checking all integration branches
2023-08-01T17:00:51.623000: INFO : The bisection is done.
2023-08-01T17:00:51.624000: INFO : Stopped

Hello Jeff, wonder if you could take a look at this, please?

Flags: needinfo?(jmuizelaar)

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

Assignee: nobody → jmuizelaar

It looks like bug 1839470 exposed an existing bug in PathD2D::Arc

Depends on: 1846822
Flags: needinfo?(jmuizelaar)

It seems like mochitest test_canvas.html is not enabled on Windows either, which is where we have a lot of canvas arc coverage. I wonder if those would have caught the bug. It looks like bug 1464181 disabled those, during the early WebRender development era (the mochitest.ini line implicates bug 1464173, though the actual change was bug 1464181).

This should roughly approximate the behaviour we had prior to bug 1839470

Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/244b15e6eeb5 Use ArcToBezier for D2D until the D2D Arc bugs are fixed. r=ahale

Comment on attachment 9347035 [details]
Bug 1846613. Use ArcToBezier for D2D until the D2D Arc bugs are fixed.

Beta/Release Uplift Approval Request

  • User impact if declined: We'll sometimes draw arcs in canvas the wrong way.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This makes us use the same ArcToBezier path for arcs that we were previously using directly in canvas. It has been manually verified to fix the chartjs issue.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9347035 - Flags: approval-mozilla-release?
Attachment #9347035 - Flags: approval-mozilla-beta?

Comment on attachment 9347035 [details]
Bug 1846613. Use ArcToBezier for D2D until the D2D Arc bugs are fixed.

Approved for 117.0b3
Approved for 116.0.1 dot release

Attachment #9347035 - Flags: approval-mozilla-release?
Attachment #9347035 - Flags: approval-mozilla-release+
Attachment #9347035 - Flags: approval-mozilla-beta?
Attachment #9347035 - Flags: approval-mozilla-beta+
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
See Also: → 1846883
Attached file minimal testcase

The two arcs should look the same.

Duplicate of this bug: 1846647
Duplicate of this bug: 1847025
Duplicate of this bug: 1847016
See Also: → 1847149
QA Whiteboard: [qa-triaged]
Flags: qe-verify+

Reproduced with Fx 118.0a1 (2023-08-02).
Verified fixed with Fx 118.0a1 (2023-08-03), 117.0b3 and 116.0.1.
Tested on Windows 10.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: