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

Issue 400023002: Fix canPlayType() support for non-RFC compliant mp3 mimetype. (Closed)

Created:
6 years, 5 months ago by acolwell GONE FROM CHROMIUM
Modified:
6 years, 5 months ago
Reviewers:
DaleCurtis, Ryan Sleevi
CC:
chromium-reviews, feature-media-reviews_chromium.org, cbentzel+watch_chromium.org, jam, darin-cc_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fix canPlayType() support for non-RFC compliant mp3 mimetype. The 'audio/mpeg; codecs="mp3"' mimetype is not RFC 3003 compliant, but a bunch of sites apparently use it. This change restores the behavior that was in M35 and earlier and returns "probably" for this mimetype. The changes are intentionally kept small so they can be easily be merged to the M36 & M37 branches. BUG=393720, 386073 TEST=MediaCanPlayTypeTest.CodecSupportTest_mp3 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283929

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address CR comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -4 lines) Patch
M content/browser/media/media_canplaytype_browsertest.cc View 1 chunk +5 lines, -1 line 0 comments Download
M net/base/mime_util.cc View 1 2 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
acolwell GONE FROM CHROMIUM
6 years, 5 months ago (2014-07-17 18:31:09 UTC) #1
Ryan Sleevi
LGTM with two nits. https://codereview.chromium.org/400023002/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/400023002/diff/1/net/base/mime_util.cc#newcode529 net/base/mime_util.cc:529: return supported_codecs.find("") != supported_codecs.end(); .find(std::string()) ...
6 years, 5 months ago (2014-07-17 18:38:08 UTC) #2
DaleCurtis
lgtm https://codereview.chromium.org/400023002/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/400023002/diff/1/net/base/mime_util.cc#newcode476 net/base/mime_util.cc:476: { "audio/mpeg", ",mp3" }, // Note: Empty string ...
6 years, 5 months ago (2014-07-17 18:41:55 UTC) #3
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/400023002/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/400023002/diff/1/net/base/mime_util.cc#newcode476 net/base/mime_util.cc:476: { "audio/mpeg", ",mp3" }, // Note: Empty string codec ...
6 years, 5 months ago (2014-07-17 18:57:01 UTC) #4
acolwell GONE FROM CHROMIUM
The CQ bit was checked by acolwell@chromium.org
6 years, 5 months ago (2014-07-17 18:57:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/400023002/40001
6 years, 5 months ago (2014-07-17 18:59:48 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 23:49:52 UTC) #7
Message was sent while issue was closed.
Change committed as 283929

Powered by Google App Engine
This is Rietveld 408576698