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

Issue 97913002: Recognize json media types as (non-image) mime types. (Closed)

Created:
7 years ago by sof
Modified:
7 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Recognize json media types as (non-image) mime types. Extend the IsSupportedNonImageMimeType() predicate to also recognize the JSON media types ("application/<something>+json") ( http://tools.ietf.org/html/rfc6839#section-3.1 ) Note that the 6839 RFC text allows the use of any toplevel type, not just "application/". No known uses outside of application/ however, hence we limit ourselves for now. R= BUG=278568 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242008

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M net/base/mime_util.cc View 1 chunk +3 lines, -1 line 2 comments Download
M net/base/mime_util_unittest.cc View 4 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
sof
At your leisure, please take a look. (https://codereview.chromium.org/94893003/ for the changes needed on the Blink ...
7 years ago (2013-12-01 21:11:59 UTC) #1
abarth-chromium
lgtm https://codereview.chromium.org/97913002/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/97913002/diff/1/net/base/mime_util.cc#newcode523 net/base/mime_util.cc:523: MatchesMimeType("application/*+json", mime_type)); Is this how we check for ...
7 years ago (2013-12-01 23:02:31 UTC) #2
sof
https://codereview.chromium.org/97913002/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/97913002/diff/1/net/base/mime_util.cc#newcode523 net/base/mime_util.cc:523: MatchesMimeType("application/*+json", mime_type)); On 2013/12/01 23:02:32, abarth wrote: > Is ...
7 years ago (2013-12-02 06:28:57 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/97913002/1
7 years ago (2013-12-02 06:36:00 UTC) #4
abarth-chromium
On 2013/12/02 06:28:57, sof wrote: > Beyond this part..should something with a MIME type application/rss+xml ...
7 years ago (2013-12-02 06:37:19 UTC) #5
sof
On 2013/12/02 06:37:19, abarth wrote: > On 2013/12/02 06:28:57, sof wrote: > > Beyond this ...
7 years ago (2013-12-02 06:41:46 UTC) #6
abarth-chromium
On 2013/12/02 06:41:46, sof wrote: > thanks, good to know. But recognizing other +xml kinds ...
7 years ago (2013-12-02 06:46:50 UTC) #7
tyoshino (SeeGerritForStatus)
I said we should handle application type data with the +json suffix as application/json type ...
7 years ago (2013-12-02 06:54:14 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=38781
7 years ago (2013-12-02 06:55:19 UTC) #9
sof
On 2013/12/02 06:54:14, tyoshino wrote: > I said we should handle application type data with ...
7 years ago (2013-12-02 08:09:58 UTC) #10
tyoshino (SeeGerritForStatus)
lgtm
7 years ago (2013-12-02 08:13:43 UTC) #11
sof
thanks both; needs net/OWNERS approval.
7 years ago (2013-12-02 08:32:48 UTC) #12
cbentzel
LGTM Should this land after the blink-side change? If this lands without blink change it ...
7 years ago (2013-12-02 11:46:05 UTC) #13
sof
On 2013/12/02 11:46:05, cbentzel wrote: > LGTM > > Should this land after the blink-side ...
7 years ago (2013-12-02 11:51:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/97913002/1
7 years ago (2013-12-19 21:01:13 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=238675
7 years ago (2013-12-19 22:54:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/97913002/1
7 years ago (2013-12-19 23:00:46 UTC) #17
commit-bot: I haz the power
7 years ago (2013-12-20 01:48:48 UTC) #18
Message was sent while issue was closed.
Change committed as 242008

Powered by Google App Engine
This is Rietveld 408576698