Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(firefox): disable ICC color correction based on OS display (#614)

Dmitry Gozman866c60254b8b
diff --git a/src/server/ffPlaywright.ts b/src/server/ffPlaywright.ts
index 6dba2b2e78..4b3fbb9062 100644
--- a/src/server/ffPlaywright.ts
+++ b/src/server/ffPlaywright.ts
@@ -369,6 +369,12 @@ const DEFAULT_PREFERENCES = {
'geo.provider.testing': true,
// Do not scan Wifi
'geo.wifi.scan': false,
+
+ // No ICC color correction. See
+ // https://developer.mozilla.org/en/docs/Mozilla/Firefox/Releases/3.5/ICC_color_correction_in_Firefox.
+ 'gfx.color_management.mode': 0,
+ 'gfx.color_management.rendering_intent': 3,
+
// No hang monitor
'hangmonitor.timeout': 0,
// Show chrome errors and warnings in the error console
diff --git a/test/golden-firefox/mock-binary-response.png b/test/golden-firefox/mock-binary-response.png
index be9f4a4468..e7eaf59779 100644
Binary files a/test/golden-firefox/mock-binary-response.png and b/test/golden-firefox/mock-binary-response.png differ