Bug 75182

Summary: JPEG decoders should only save color profile markers if color management is enabled
Product: WebKit Reporter: noel gordon <noel.gordon>
Component: New BugsAssignee: noel gordon <noel.gordon>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, pkasting, rniwa, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 74400    
Attachments:
Description Flags
Patch
none
Patch
none
Patch rniwa: review+, webkit.review.bot: commit-queue-

Description noel gordon 2011-12-23 19:17:16 PST
JPEG Color profile support was added in bug 48819.  Color profile (JPEG_APP0 + 2) markers are currently stored even if color management is disabled.  We should only read and retain color profile markers if color management is enabled.
Comment 1 noel gordon 2011-12-23 19:35:24 PST
Created attachment 120484 [details]
Patch
Comment 2 WebKit Review Bot 2011-12-23 21:45:50 PST
Comment on attachment 120484 [details]
Patch

Clearing flags on attachment: 120484

Committed r103651: <http://trac.webkit.org/changeset/103651>
Comment 3 WebKit Review Bot 2011-12-23 21:45:55 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Ryosuke Niwa 2011-12-23 22:56:02 PST
fast/images/ycbcr-with-cmyk-color-profile.html started failing after this change. Is this expected?

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&tests=fast%2Fimages%2Fycbcr-with-cmyk-color-profile.html
Comment 5 noel gordon 2011-12-24 02:07:45 PST
(In reply to comment #4)
> fast/images/ycbcr-with-cmyk-color-profile.html started failing after this change. Is this expected?

Nope, results look good to me, needs a rebaseline.
Comment 6 noel gordon 2011-12-24 02:20:04 PST
Reopening to attach new patch.
Comment 7 noel gordon 2011-12-24 02:20:13 PST
Created attachment 120489 [details]
Patch
Comment 8 noel gordon 2011-12-24 02:40:29 PST
Just noticed http://trac.webkit.org/changeset/103653, need to undo that.
Comment 9 noel gordon 2011-12-24 02:41:54 PST
Created attachment 120490 [details]
Patch
Comment 10 noel gordon 2011-12-24 02:51:02 PST
(In reply to comment #5)
> Is this expected?

Chrome Skia Mac and Chrome CG Mac produce minor paint differences.
Comment 11 WebKit Review Bot 2011-12-24 10:45:53 PST
Comment on attachment 120490 [details]
Patch

Rejecting attachment 120490 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

ERROR: /mnt/git/webkit-commit-queue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/11027442
Comment 12 Ryosuke Niwa 2011-12-24 10:56:27 PST
Rebaselined the test in http://trac.webkit.org/changeset/103657.