Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Issue 1764603002: Added ROBUST_PNG_CODEC to ImageDecoder (Closed)

Created:
4 years, 9 months ago by satorux1
Modified:
4 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added ROBUST_PNG_CODEC to ImageDecoder ROBUST_JPEG_CODEC was added in the past because using the default decoder, that accepts various image formats, in login screens is potentially dangerous. However, JPEG format does not support transparent pixels, hence profile images with transparent pixels are rendered incorrectly. Per discussion with jorgelo@ and mdempsky@, this patch introduces ROBUST_PNG_CODEC, that accepts only PNG data on top of the libpng decoder. BUG=587289 TEST=run the newly added browser tests Committed: https://crrev.com/f7e76f065f7ee1843fd82753ec998bf95ccc1b7b Cr-Commit-Position: refs/heads/master@{#380086}

Patch Set 1 #

Patch Set 2 : just rebase #

Patch Set 3 : add #ifdef #

Total comments: 2

Patch Set 4 : just rebase #

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -0 lines) Patch
M chrome/browser/image_decoder.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/image_decoder.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/image_decoder_browsertest.cc View 1 2 3 4 2 chunks +79 lines, -0 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
satorux1
4 years, 9 months ago (2016-03-03 06:27:00 UTC) #2
mdempsky
lgtm
4 years, 9 months ago (2016-03-03 07:34:36 UTC) #3
Jorge Lucangeli Obes
lgtm
4 years, 9 months ago (2016-03-03 17:57:52 UTC) #4
satorux1
+thestig@ please take a look once you are back.
4 years, 9 months ago (2016-03-04 05:12:21 UTC) #6
Lei Zhang
lgtm https://codereview.chromium.org/1764603002/diff/40001/chrome/browser/image_decoder_browsertest.cc File chrome/browser/image_decoder_browsertest.cc (right): https://codereview.chromium.org/1764603002/diff/40001/chrome/browser/image_decoder_browsertest.cc#newcode60 chrome/browser/image_decoder_browsertest.cc:60: #endif // defined(OS_CHROMEOS) nit: add extra space, run ...
4 years, 9 months ago (2016-03-08 23:38:00 UTC) #7
satorux1
https://codereview.chromium.org/1764603002/diff/40001/chrome/browser/image_decoder_browsertest.cc File chrome/browser/image_decoder_browsertest.cc (right): https://codereview.chromium.org/1764603002/diff/40001/chrome/browser/image_decoder_browsertest.cc#newcode60 chrome/browser/image_decoder_browsertest.cc:60: #endif // defined(OS_CHROMEOS) On 2016/03/08 23:37:59, Lei Zhang (OOO) ...
4 years, 9 months ago (2016-03-09 05:28:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1764603002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1764603002/80001
4 years, 9 months ago (2016-03-09 05:51:52 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-09 06:30:53 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 06:32:03 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f7e76f065f7ee1843fd82753ec998bf95ccc1b7b
Cr-Commit-Position: refs/heads/master@{#380086}

Powered by Google App Engine
This is Rietveld 408576698