Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable canvas acceleration in Firefox 110 in test cases #857

Merged
merged 1 commit into from
Feb 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ module.exports = function(karma) {
// Explicitly disable hardware acceleration to make image
// diff more stable when ran on Travis and dev machine.
// https://github.com/chartjs/Chart.js/pull/5629
// Since FF 110, in FF GPU-accelerated Canvas2D is enabled by default on macOS and Linux.
// This is braking fixture test cases, therefore is disabled by setting gfx.canvas.accelerated
customLaunchers: {
chrome: {
base: 'Chrome',
Expand All @@ -55,7 +57,8 @@ module.exports = function(karma) {
firefox: {
base: 'Firefox',
prefs: {
'layers.acceleration.disabled': true
'layers.acceleration.disabled': true,
'gfx.canvas.accelerated': false
}
}
},
Expand Down