Skip to content

Commit 3abab64

Browse files
authored
Disable canvas acceleration in Firefox 110 in test cases (#857)
1 parent 6a5d65c commit 3abab64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ module.exports = function(karma) {
4242
// Explicitly disable hardware acceleration to make image
4343
// diff more stable when ran on Travis and dev machine.
4444
// https://github.com/chartjs/Chart.js/pull/5629
45+
// Since FF 110, in FF GPU-accelerated Canvas2D is enabled by default on macOS and Linux.
46+
// This is braking fixture test cases, therefore is disabled by setting gfx.canvas.accelerated
4547
customLaunchers: {
4648
chrome: {
4749
base: 'Chrome',
@@ -55,7 +57,8 @@ module.exports = function(karma) {
5557
firefox: {
5658
base: 'Firefox',
5759
prefs: {
58-
'layers.acceleration.disabled': true
60+
'layers.acceleration.disabled': true,
61+
'gfx.canvas.accelerated': false
5962
}
6063
}
6164
},

0 commit comments

Comments
 (0)