Bug 1403970

Summary: Some JPEG images are rendered dark in Firefox 50
Product: [Fedora] Fedora Reporter: Jaša Bartelj <bartmon>
Component: firefoxAssignee: Jan Horak <jhorak>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: bugzilla, gecko-bugs-nobody, jhorak, pjasicek, rhughes
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 19:26:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
firefox 50 screen shot with darkly rendered images none

Description Jaša Bartelj 2016-12-12 18:47:57 UTC
Created attachment 1230878 [details]
firefox 50 screen shot with darkly rendered images

Description of problem:
Some JPEG images are rendered dark in Firefox 50. See screenshot attachment.

Version-Release number of selected component (if applicable):
$ rpm -qa firefox
firefox-50.0.2-1.fc24.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Visit http://arstechnica.com/gaming/2016/12/one-upping-the-nes-classic-edition-with-the-raspberry-pi-3-and-retropie/

Actual results:
Some images in linked article are dark.

Expected results:
Images should be rendered with proper contrast and/or brightness.

Additional info:
* Creating a fresh profile does not change the problem (extensions not at fault).
* Mozilla's build of FF 50.0.2 DOES NOT exhibit this problem (available @ https://archive.mozilla.org/pub/firefox/releases/50.0.2/linux-x86_64-EME-free/en-GB/firefox-50.0.2.tar.bz2)

Comment 1 Jaša Bartelj 2017-01-11 16:59:01 UTC
firefox-50.1.0-1.fc24.x86_64

Comment 2 Jaša Bartelj 2017-03-06 15:51:10 UTC
firefox-51.0.1-2.fc24.x86_64 affected.

Comment 3 Jan Horak 2017-03-10 12:52:35 UTC
Thanks for the report.

It's related to color management. To workaround this change gfx.color_management.enablev4 to false in about:config.
or
you could check the color profile for your monitor in Gnome Settings/Color. Disabling color profile also helps to me, but that's most likely unwanted 'solution'.

Comment 4 Jan Horak 2017-03-10 13:27:04 UTC
Looks like this problem is tracked upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=512705

BTW upstream binaries has the gfx.color_management.enablev4 set to false by default, that's why is it okay in it. If you change it to true you'll encounter same problem as our build.

Comment 5 Jan Horak 2017-03-10 13:40:31 UTC
For the reference, it was enabled by fixing bug 878831.

Comment 6 Jan Horak 2017-03-10 13:41:56 UTC
Richard, do you think we can do something about that? Do you have any clue what's wrong here? Do the image looks good for you?

Comment 7 Chris Murphy 2017-03-10 16:51:17 UTC
I do see the problem on Fedora's Firefox. I don't see the problem using the org.mozilla.FirefoxDevEdition/x86_64/master org.mozilla.FirefoxDevEdition-origin flatpak. Of course these have gfx.color_management.enablev4 true and false respectively. I also don't see the problem in GIMP.

The short term solution is what I recommend in bug 1399806.

Comment 8 Jan Horak 2017-04-03 12:06:30 UTC
I guess we'll disable color management for Firefox until it is fixed.

Comment 9 Fedora End Of Life 2017-07-26 00:04:27 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2017-08-08 19:26:04 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.