Open Bug 1524694 Opened 5 years ago Updated 2 years ago

[Mac] Fix gfx.color_management.display_profile for arbitrary profile paths

Categories

(Core :: Security: Process Sandboxing, defect, P2)

65 Branch
Unspecified
macOS
defect

Tracking

()

People

(Reporter: haik, Unassigned)

References

Details

Setting the pref gfx.color_management.display_profile to contain the path to a color profile is a supported method for getting Firefox to use a color profile. It can be used along with some other color-related prefs documented on MDN[1]. Note: this pref is not needed for Firefox to use the profile that is currently selected as the system default.

The fix for bug 1501126 "[Mac] Enable sandbox early startup by default on Nightly" in build 65 regressed this functionality because it moved sandbox initialization earlier in startup, before the color profile is read, preventing gfx.color_management.display_profile from being used to load profiles not in the /System/Library/ColorSync/Profiles directory.

Bug 1506495 partially addresses the regression by whitelisting common directories for color profiles (in /Library and /Library), but didn't address the case where gfx.color_management.display_profile is set to an arbitrary location such as "/Downloads/MyMonitor.icc". (The /System/Library ColorSync directory is already accessible from the content process sandbox.)

This bug is filed to allow gfx.color_management.display_profile to work with profile files from any location on the filesystem.

  1. https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/3.5/ICC_color_correction_in_Firefox
Blocks: 1501126
See Also: → 1506495
See Also: → 1524722
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.