Skip to content

Commit

Permalink
fix(firefox): disable ICC color correction based on OS display (#614)
Browse files Browse the repository at this point in the history
This way screenshots will be consistent across host environments.
  • Loading branch information
dgozman authored and aslushnikov committed Jan 23, 2020
1 parent c1cca19 commit 866c602
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/ffPlaywright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified test/golden-firefox/mock-binary-response.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 866c602

Please sign in to comment.