Closed Bug 504805 Opened 15 years ago Closed 15 years ago

Update libpng to version 1.2.40

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.3a1

People

(Reporter: glennrp+bmo, Assigned: glennrp+bmo)

References

()

Details

Attachments

(3 files, 10 obsolete files)

(deleted), text/plain
Details
(deleted), patch
joe
: review+
Details | Diff | Splinter Review
(deleted), text/html
Details
Libpng-1.2.38 has been released. It's mostly cosmetic, but for mozilla it provides defense against bad iCCP chunks when color management is not being used.
Attached patch Update libpng in trunk to version 1.2.38 (v0) (obsolete) (deleted) — Splinter Review
Attachment #389118 - Flags: superreview?(vladimir)
Attachment #389118 - Flags: review?(joe)
Blocks: 492200
Comment on attachment 389118 [details] [diff] [review] Update libpng in trunk to version 1.2.38 (v0) No sr required under the new SR rules: http://www.mozilla.org/hacking/reviewers.html
Attachment #389118 - Flags: superreview?(vladimir)
Attachment #389118 - Flags: review?(joe)
Attachment #389118 - Flags: review+
Attached file Errorlog (deleted) —
I've tried this patch for my build (Mac OS X 10.5.7, Intel), but I get this error.
Comment on attachment 389118 [details] [diff] [review] Update libpng in trunk to version 1.2.38 (v0) I botched the merge of png.h from libpng-1.2.38 with the APNG support. Will try again today.
Attachment #389118 - Attachment is obsolete: true
Keywords: checkin-needed
Attachment #389118 - Flags: review+
Attached patch Update libpng in trunk to version 1.2.38 (v1) (obsolete) (deleted) — Splinter Review
Fixed merge of png.h with APNG stuff.
Flags: blocking1.9.2?
Glenn, have you tested APNGs with this patch? I just see a lot of removal of APNG support.
Most of the APNG stuff already in the trunk is not touched. Some #defines are relocated in pngconf.h, and there's a little change involving BLEND_OP included in the libpng patch. No, I have not tested because I don't have access to the try-server and firefox won't build (patched or not) on platforms I have access to. I have to rely on someone who does have access to the try-server for testing.
Glenn - I filed bug 505757 to get you tryserver access. ;-)
And I've pushed v1 to try :)
(In reply to comment #10) > Lots of build failures. :( Do you have log files I can look at? Meanwhile I think I can work out a local testing method for APNG-enabled libpng, but give me a few days.
(In reply to comment #10) > Lots of build failures. :( > http://tinderbox.mozilla.org/showbuilds.cgi?tree=MozillaTry There was a mixup, png.h was from libpng-1.2.37 instead of libpng-1.2.38.
Attached patch Update libpng in trunk to version 1.2.39 (v0) (obsolete) (deleted) — Splinter Review
Libpng-1.2.39 has been released. Here is the update to 1.2.39 from 1.2.35, which is what is in the trunk.
Attachment #389295 - Attachment is obsolete: true
Summary: Update libpng to version 1.2.38 → Update libpng to version 1.2.39
Attached patch Update libpng in trunk to version 1.2.39 (v1) (obsolete) (deleted) — Splinter Review
Removed a stray "*/" from pngset.c
Attachment #394573 - Attachment is obsolete: true
Attached patch Update libpng in trunk to version 1.2.39 (v2) (obsolete) (deleted) — Splinter Review
Relocated a misplaced #define in pngconf.h and fixed a typo in mozpngconf.h
Attachment #394707 - Attachment is obsolete: true
Attached patch Update libpng in trunk to version 1.2.39 (v3) (obsolete) (deleted) — Splinter Review
Relocated a misplaced #endif.
Attachment #394733 - Attachment is obsolete: true
Attachment #394800 - Flags: review?(joe)
Comment on attachment 394800 [details] [diff] [review] Update libpng in trunk to version 1.2.39 (v3) The merge with png.h from libpng-1.2.39 is still not quite right. Cancelling request for review.
Attachment #394800 - Flags: review?(joe)
Attached patch Update libpng in trunk to version 1.2.39 (v4) (obsolete) (deleted) — Splinter Review
This patch corrects the merging of png.h with libpng-1.2.39, and relocates the acTL chunk in output PNG files immediately after the IHDR chunk so APNG files can be quickly recognized.
Attachment #394800 - Attachment is obsolete: true
Attached patch Update libpng in trunk to version 1.2.39 (v5) (obsolete) (deleted) — Splinter Review
The v4 patch left some litter, an unwanted working file (png.h_diff). It's removed from v5.
Attachment #395306 - Attachment is obsolete: true
Attachment #395313 - Flags: review?(joe)
Before I review this, can you post it to the try server to ensure that everything is good?
(In reply to comment #20) > Before I review this, can you post it to the try server to ensure that > everything is good? Yes, I can. The one I put in this morning did not go well, so I've got to check the logs now...
Attachment #395313 - Flags: review?(joe)
Attached patch Update libpng in trunk to version 1.2.39 (v6) (obsolete) (deleted) — Splinter Review
Attachment #395313 - Attachment is obsolete: true
Attachment #395686 - Flags: review?(joe)
Attached patch Update libpng in trunk to version 1.2.40 (v7) (obsolete) (deleted) — Splinter Review
Libpng-1.2.40 is out. The differences from 1.2.39 are trivial.
Attachment #400070 - Flags: review?(joe)
Summary: Update libpng to version 1.2.39 → Update libpng to version 1.2.40
Attachment #395686 - Attachment is obsolete: true
Attachment #395686 - Flags: review?(joe)
Successful tryserver builds for the v7 patch are at https://build.mozilla.org/tryserver-builds/glennrp@gmail.com-libpng-1.2.40-v7/
Attachment #400070 - Attachment is obsolete: true
Attachment #400070 - Flags: review?(joe)
Comment on attachment 400070 [details] [diff] [review] Update libpng in trunk to version 1.2.40 (v7) Checkin of bug #435296 has cause a little bit-rot. I'm testing a v8 patch now.
Fixed bit-rot in nsPNGDecoder.cpp Successful TryServer results are at http://build.mozilla.org/tryserver-builds/glennrp@gmail.com-bug504805-libpng-1.2.40-v8
Attachment #400420 - Flags: review?(joe)
Flags: blocking1.9.2? → blocking1.9.2-
Blocks: 455140, 441971, 463465
Joe, ping?
Attachment #400420 - Flags: review?(vladimir)
Glenn, I never checked -- did this pass all the unittests on tryserver?
@joe, there are a few sporadic warnings, but I get them whether I apply the patch or not, and they don't show up on all platforms. I don't know how to relate them to anything.
Generally, if you do a search for the failure you see, and you see a bug open about it, it can safely be ignored as "not impacted by this code." (i.e., it's a known intermittent failure.) Those bugs are all tagged with [orange] in the whiteboard, so doing a search for that will show the list of bugs.
New TryServer builds are at https://build.mozilla.org/tryserver-builds/glennrp@gmail.com-bug504805-bug517713-repeat/ There are still several sporadic unittest warnings that seem unrelated to this patch (they sometimes appear, whether or not the patch is applied). As you can probably guess from the URL, I also applied the patch from bug #517713 to these builds.
Attachment #400420 - Flags: review?(tor)
Comment on attachment 400420 [details] [diff] [review] Update libpng in trunk to version 1.2.40 (v8) Semi-reviewed, mostly rubber-stamp. Sorry it took so long. Glenn: Can you do me one more favour and make sure this still applies to mozilla-central? I'll then commit it.
Attachment #400420 - Flags: review?(vladimir)
Attachment #400420 - Flags: review?(tor)
Attachment #400420 - Flags: review?(joe)
Attachment #400420 - Flags: review+
Joe: OK, I've submitted a tryserver run that tests both this and my patch for bug #517713.
New successful tryserver builds from mozilla-central checked out at 1600 EST today are at https://build.mozilla.org/tryserver-builds/glennrp@gmail.com-504805-v8-517713-v2-10Nov/ The unit tests seem to be failing for reasons unrelated to this patch (the previous run by another user is showing the same failures).
So there were no changes required to attachment 400420 [details] [diff] [review] to make it apply to mozilla-central? (If there were, can you please attach a new version?)
Right, I used the "v8" patch (attachment #400420 [details] [diff] [review]) along with the "v2" patch from bug #517713.
Patch applied without issue. I left bug 517713 to itself, as that patch has not been reviewed yet. http://hg.mozilla.org/mozilla-central/rev/2253ef0bcfca
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Comment on attachment 400420 [details] [diff] [review] Update libpng in trunk to version 1.2.40 (v8) This fixes a number of other PNG/APNG-related bugs, so would be good to have on 1.9.2.
Attachment #400420 - Flags: approval1.9.2?
I cannot disagree more strenuously. 1.9.2 should be on the path to completion, not unnecessary code churn. If there are specific bugs this fixes that we'd rather not ship with 1.9.2, then let's create separate bugs, with separate, contained, fixes for them.
Attachment #400420 - Flags: approval1.9.2?
Comment on attachment 400420 [details] [diff] [review] Update libpng in trunk to version 1.2.40 (v8) Very well. I will nom patches from other bugs.
All four tests from comment #32 work fine in Minefield now.
Blocks: 489342
(In reply to comment #42) > All four tests from comment #32 work fine in Minefield now. Yes, they work for me now as well, on WinXP. Marking VERIFIED.
Status: RESOLVED → VERIFIED
Blocks: 532645
No longer blocks: 532645
The tests from comment #32 all fail on Firefox 3.9.3 which was just now pushed with Ubuntu 10.4 (Gecko/20100423).
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: