Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465838 - www-browser/firefox ships broken .png files which glitch (visible with libpng 1.6+)
Summary: www-browser/firefox ships broken .png files which glitch (visible with libpng...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
: 467504 470176 (view as bug list)
Depends on:
Blocks: 468386
  Show dependency tree
 
Reported: 2013-04-13 22:21 UTC by Michael
Modified: 2014-04-06 10:47 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for 1.6.2 based on upstream git (file_465838.txt,3.66 KB, text/plain)
2013-05-08 05:35 UTC, Greg Kubaryk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2013-04-13 22:21:33 UTC
Install libpng 1.6 and firefox 20.0.1
Open new tab and go to:
chrome://browser/skin/tabbrowser/loading.png 

I've found one buggy icon, but there could be more. Here is discussion in upstream bugzilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=841734

I suggest to make firefox depend on libpng 1.5 just for now. It seems to work good, but user interface is broken, due to this file. Maybe we can fix broken icon just by open and resave, but I think it is something upstream should do. 

Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-04-14 08:04:03 UTC
One icon being broken is IMHO not a reason to pin www-client/firefox to libpng-1.5.
Comment 2 Michael 2013-04-14 09:20:11 UTC
Quick user-level fix for this issue.

.tab-throbber[progress] { list-style-image: url("chrome://global/skin/icons/loading_16.png")!important; }

in userChrome.css

This will replace broken icon with good one. 

As far as I know, we can patch
mozilla-release/xulrunner/app/profile/chrome/userChrome-example.css
but I don't completely understand how firefox make default userChrome.css.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2013-04-14 14:47:32 UTC
(In reply to comment #1)
> One icon being broken is IMHO not a reason to pin www-client/firefox to
> libpng-1.5.

Its hardly one graphic that's broken. Its much more if you read the underlying bug. By no means is it a large percentage of images but the total is greater than 1. What's more troubling is that when you save a file with GIMP when using libpng 1.6, that GIMP won't create a valid PNG per the upstream bug.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-04-14 14:52:22 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > One icon being broken is IMHO not a reason to pin www-client/firefox to
> > libpng-1.5.
> 
> Its hardly one graphic that's broken. Its much more if you read the
> underlying bug. By no means is it a large percentage of images but the total
> is greater than 1. What's more troubling is that when you save a file with
> GIMP when using libpng 1.6, that GIMP won't create a valid PNG per the
> upstream bug.

GIMP is not broken in Gentoo because it was me who told upstream about the bug, then he fixed it based on the provided information and the fixes are in Portage as 1.6.1-r1 already. So lets not mix that up in this bug.

I agree with Comment #1 in sense that this isn't worth the trouble forced downgrade would cause to users. I'm using Firefox quite happily here with libpng 1.6 and if it weren't for this report, I wouldn't have even known there are issues with the combination...
Comment 5 Michael 2013-04-14 17:40:15 UTC
(In reply to comment #4)
> I'm using Firefox quite happily here with
> libpng 1.6 and if it weren't for this report, I wouldn't have even known
> there are issues with the combination...

I think I didn't mention it, but broken icon is the the one shown on every tab while it loading content, in default skin. 

But I agree, it isn't worth trouble downgrading libpng.
Comment 6 Yaron Tausky 2013-04-27 16:33:55 UTC
*** Bug 467504 has been marked as a duplicate of this bug. ***
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-05-02 10:46:34 UTC
Problem still exists with version 1.6.2. Upstream is waiting for libpng-1.6.3.
Comment 8 Michael 2013-05-06 10:39:56 UTC
Judging by mozilla bugzilla bug is fixed in libpng 1.6.3beta04.
Comment 9 Greg Kubaryk 2013-05-08 05:35:47 UTC
Created attachment 347700 [details]
Patch for 1.6.2 based on upstream git

This patch, based on upstream git commit 127b08a265f99ce517ea31ec7988a91fc17da4d9, applied to libpng-1.6.2 and resolved this issue for me.

I can only recommend using it if you do not want to wait for 1.6.3, only because I have not performed extensive testing on it and don't have enough knowledge to say that it's acceptable for general use.  But it is based on an upstream commit (only cosmetic changes).
Comment 10 Michael 2013-05-12 19:51:39 UTC
https://bugzilla.mozilla.org/attachment.cgi?id=748550

There is fixed icon in upstream bugzilla. Could we place it in ${FILESDIR} and replace build-time?

I did it in local overlay:
cp ${FILESDIR}/loading.png ${WORKDIR}/mozilla-release/browser/themes/gnomestripe/tabbrowser/loading.png
Comment 11 Jory A. Pratt gentoo-dev 2013-05-12 21:06:10 UTC
(In reply to comment #10)
> https://bugzilla.mozilla.org/attachment.cgi?id=748550
> 
> There is fixed icon in upstream bugzilla. Could we place it in ${FILESDIR}
> and replace build-time?
> 
> I did it in local overlay:
> cp ${FILESDIR}/loading.png
> ${WORKDIR}/mozilla-release/browser/themes/gnomestripe/tabbrowser/loading.png

No we will not, we will wait for libpng-1.6.3 to be released or the patch landed in libpng-1.6.2 bug report. It fixes the icon without needing to mess with icons in firefox.
Comment 12 Michael 2013-05-12 21:53:39 UTC
(In reply to comment #11)
> No we will not, we will wait for libpng-1.6.3 to be released or the patch
> landed in libpng-1.6.2 bug report. It fixes the icon without needing to mess
> with icons in firefox.

This isn't how it looks. From what I uderstand, icon was broken, and was rejected rightfully. Patch in libpng is merely workaround, that allow optionally revert to previous, libpng1.5 behaviour. I'm sure it will be fixed in firefox upstream eventually, but I think it could be a while, until upstream switch to libpng1.6. In meantime in gentoo we already have libpng1.6 in ~x86, and default user interface in firefox is broken. I understand it is minor issue, but nonetheless, imagine how annoying it would be to see constant epileptic seizure on every tab.
Comment 13 Jory A. Pratt gentoo-dev 2013-05-20 21:22:53 UTC
*** Bug 470176 has been marked as a duplicate of this bug. ***
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2013-05-23 08:29:43 UTC
The patch won't make it to 1.6.3 or any other release. The broken images won't show up in future releases either.

See,

https://bugzilla.mozilla.org/show_bug.cgi?id=841734#c12

And comments below it.

So if the loading.png is broken, it needs to be fixed like suggested in Comment #10
As in, waiting for 1.6.3 won't solve this for mozilla.
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2013-05-23 08:31:12 UTC
Comment on attachment 347700 [details]
Patch for 1.6.2 based on upstream git

patch upstream reverted and won't go to tree. the default libpng behavior will stay like it is 1.6.0, 1.6.1, 1.6.2 and the images with broken IDAT won't show
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2013-07-20 17:51:05 UTC
1.6.3 is released and won't fix this bug magically for firefox.   since it's firefox that is broken, i'll switch this bug to block 468386.

note that this won't be a blocker for libpng 1.6.3 stabilization, so please get the broken icons fixed that are shipped with firefox.

note that the libpng 1.6.3 comes with binaries to fix the broken images:

$ qlist libpng |grep bin.*fix
/usr/bin/png-fix-itxt
/usr/bin/pngfix
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2013-07-20 17:53:03 UTC
for example, https://bugzilla.mozilla.org/show_bug.cgi?id=841734#c16 should be included in any firefox ebuild that has broken loading icon
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2013-12-21 16:12:43 UTC
This hasn't been a problem for quite a while now.
Comment 19 Denis M. (Phr33d0m) 2013-12-21 19:48:41 UTC
(In reply to Samuli Suominen from comment #18)
> This hasn't been a problem for quite a while now.

It still persists for me with firefox-26.0 & libpng-1.6.7.
Comment 20 Michael 2013-12-22 00:21:35 UTC
It's ok. In firefox 27 upstream will switch to libpng 1.6, then they will fix it. 
But why it's marked 'fixed' now? It's not.
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2013-12-22 04:35:09 UTC
(In reply to Michael from comment #20)
> It's ok. In firefox 27 upstream will switch to libpng 1.6, then they will
> fix it. 
> But why it's marked 'fixed' now? It's not.

Using 1.6 at Firefox upstream is NOT a prereq for this bug, but using the proper .png files like in Comment #17 is
That's enough to make the loading icon stop glitching
I'm looking at www-client/firefox-25.0.1 with libpng-1.6.8 without any glitches as we speak
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2013-12-22 04:39:39 UTC
letting the mozilla maintainers close the bug then, but this has been fixed half an year by now
Comment 23 Michael 2013-12-22 08:03:09 UTC
(In reply to Samuli Suominen from comment #21)
> (In reply to Michael from comment #20)
> > It's ok. In firefox 27 upstream will switch to libpng 1.6, then they will
> > fix it. 
> > But why it's marked 'fixed' now? It's not.
> 
> Using 1.6 at Firefox upstream is NOT a prereq for this bug, but using the
> proper .png files like in Comment #17 is
> That's enough to make the loading icon stop glitching
> I'm looking at www-client/firefox-25.0.1 with libpng-1.6.8 without any
> glitches as we speak

Then we should fix it in ebuild, like here in https://bugs.gentoo.org/show_bug.cgi?id=465838#c10 do we?
Comment 24 Samuli Suominen (RETIRED) gentoo-dev 2014-04-06 10:47:30 UTC
(In reply to Michael from comment #23)
> (In reply to Samuli Suominen from comment #21)
> > (In reply to Michael from comment #20)
> > > It's ok. In firefox 27 upstream will switch to libpng 1.6, then they will
> > > fix it. 
> > > But why it's marked 'fixed' now? It's not.
> > 
> > Using 1.6 at Firefox upstream is NOT a prereq for this bug, but using the
> > proper .png files like in Comment #17 is
> > That's enough to make the loading icon stop glitching
> > I'm looking at www-client/firefox-25.0.1 with libpng-1.6.8 without any
> > glitches as we speak
> 
> Then we should fix it in ebuild, like here in
> https://bugs.gentoo.org/show_bug.cgi?id=465838#c10 do we?

I just rechecked, there is really nothing to do here:

$ qlist -CIv firefox libpng
media-libs/libpng-1.6.10
www-client/firefox-27.0.1

No glitching icons anymore, the one from Comment #10 is included in the upstream tarball:

$ tar xf /usr/portage/distfiles/firefox-27.0.1.source.tar.bz2 -C /tmp/
$ firefox /tmp/mozilla-release/browser/themes/linux/tabbrowser/loading.png

Same as in https://bug841734.bugzilla.mozilla.org/attachment.cgi?id=748550