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

Issue 2534063003: macOS: Do not crash on selecting a color for <input type=color>. (Closed)

Created:
4 years ago by tkent
Modified:
4 years ago
Reviewers:
keishi, Robert Sesek
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

macOS: Do not crash on selecting a color for <input type=color>. Selecting a color in "Developer" palette in "Color Palettes" tab crashes the browser process because such colors are in NSNamedColorSpace, and skia::NSDeviceColorToSkColor can't handle it. We try to convert such colors into genericRGBColorSpace, and ignore them if we can't convert them. BUG=661267 Committed: https://crrev.com/2792c4e2d977fce9eabc9aefcf3f206851464402 Cr-Commit-Position: refs/heads/master@{#435114}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/browser/ui/cocoa/color_chooser_mac.mm View 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 20 (11 generated)
tkent
keishi@, would you review the code logic please? Reference: http://stackoverflow.com/questions/2687505/cant-convert-nsnamedcolorspace-to-nsdevicergbcolorspace
4 years ago (2016-11-29 08:37:13 UTC) #4
keishi
LGTM
4 years ago (2016-11-29 08:40:27 UTC) #5
tkent
rsesek@, would you approve this please?
4 years ago (2016-11-29 08:42:11 UTC) #7
Robert Sesek
LGTM
4 years ago (2016-11-29 15:37:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2534063003/1
4 years ago (2016-11-29 22:53:41 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-30 00:56:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2534063003/1
4 years ago (2016-11-30 00:59:39 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-30 01:46:05 UTC) #18
commit-bot: I haz the power
4 years ago (2016-11-30 01:48:19 UTC) #20
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2792c4e2d977fce9eabc9aefcf3f206851464402
Cr-Commit-Position: refs/heads/master@{#435114}

Powered by Google App Engine
This is Rietveld 408576698