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

Issue 218303002: Fix: canPlayType() gives false positive for */ogg and audio/x-wav (Closed)

Created:
6 years, 8 months ago by amogh.bihani
Modified:
6 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, cbentzel+watch_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix: canPlayType() gives false positive for */ogg and audio/x-wav Adding the following mime types and their codecs in format_codec_mappings[]. This will prevent the browser from giving wrong result for "canPlayType()" query for these mime types: audio/ogg video/ogg application/ogg audio/x-wav Adding unit test for checking StrictMediaMimeType() method BUG=53193 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262374

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments #

Total comments: 2

Patch Set 3 : Changing comments #

Patch Set 4 #

Patch Set 5 #

Patch Set 6 #

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

Messages

Total messages: 24 (0 generated)
amogh.bihani
PTAL. I have added some of the mime types in the strict list for which ...
6 years, 8 months ago (2014-03-29 09:22:24 UTC) #1
ddorwin
I don't think this really addresses BUG=357665, at least not directly - this is just ...
6 years, 8 months ago (2014-04-01 00:10:44 UTC) #2
ddorwin
I don't think this really addresses BUG=357665, at least not directly - this is just ...
6 years, 8 months ago (2014-04-01 00:10:44 UTC) #3
ddorwin
On 2014/04/01 00:10:44, ddorwin wrote: > I don't think this really addresses BUG=357665, at least ...
6 years, 8 months ago (2014-04-01 00:12:05 UTC) #4
amogh.bihani
On 2014/04/01 00:10:44, ddorwin wrote: > I don't think this really addresses BUG=357665, at least ...
6 years, 8 months ago (2014-04-01 03:26:44 UTC) #5
amogh.bihani
acolwell@ scherkus@ PTAL
6 years, 8 months ago (2014-04-02 02:39:03 UTC) #6
scherkus (not reviewing)
https://codereview.chromium.org/218303002/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/218303002/diff/1/net/base/mime_util.cc#newcode439 net/base/mime_util.cc:439: { "video/ogg", "opus, theora, vorbis" }, nit: the other ...
6 years, 8 months ago (2014-04-02 16:26:45 UTC) #7
amogh.bihani
https://codereview.chromium.org/218303002/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/218303002/diff/1/net/base/mime_util.cc#newcode439 net/base/mime_util.cc:439: { "video/ogg", "opus, theora, vorbis" }, On 2014/04/02 16:26:46, ...
6 years, 8 months ago (2014-04-03 03:57:13 UTC) #8
scherkus (not reviewing)
lgtm
6 years, 8 months ago (2014-04-03 19:55:06 UTC) #9
amogh.bihani
The CQ bit was checked by amogh.bihani@samsung.com
6 years, 8 months ago (2014-04-04 04:00:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/218303002/20001
6 years, 8 months ago (2014-04-04 04:01:20 UTC) #11
amogh.bihani
@Ryan OWNER's review please.
6 years, 8 months ago (2014-04-04 04:32:20 UTC) #12
amogh.bihani
The CQ bit was unchecked by amogh.bihani@samsung.com
6 years, 8 months ago (2014-04-04 04:32:24 UTC) #13
Ryan Sleevi
LGTM rubberstamp, with nit. Deferring to scherkus here on media/ correctness https://codereview.chromium.org/218303002/diff/20001/net/base/mime_util_unittest.cc File net/base/mime_util_unittest.cc (right): ...
6 years, 8 months ago (2014-04-07 16:47:46 UTC) #14
amogh.bihani
Thanks for the review :) https://codereview.chromium.org/218303002/diff/20001/net/base/mime_util_unittest.cc File net/base/mime_util_unittest.cc (right): https://codereview.chromium.org/218303002/diff/20001/net/base/mime_util_unittest.cc#newcode112 net/base/mime_util_unittest.cc:112: // TODO(amogh.bihani): Fix these ...
6 years, 8 months ago (2014-04-08 03:29:14 UTC) #15
amogh.bihani
The CQ bit was checked by amogh.bihani@samsung.com
6 years, 8 months ago (2014-04-08 03:29:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/218303002/40001
6 years, 8 months ago (2014-04-08 03:29:41 UTC) #17
amogh.bihani
The CQ bit was checked by amogh.bihani@samsung.com
6 years, 8 months ago (2014-04-08 06:06:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/218303002/60001
6 years, 8 months ago (2014-04-08 06:06:36 UTC) #19
amogh.bihani
The CQ bit was unchecked by amogh.bihani@samsung.com
6 years, 8 months ago (2014-04-08 07:27:18 UTC) #20
amogh.bihani
The test was failing on Android for video/ogg. This is because the IsStrictMediaMimeType directly checks ...
6 years, 8 months ago (2014-04-08 09:07:41 UTC) #21
amogh.bihani
The CQ bit was checked by amogh.bihani@samsung.com
6 years, 8 months ago (2014-04-08 09:24:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/218303002/70005
6 years, 8 months ago (2014-04-08 09:25:02 UTC) #23
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 11:44:08 UTC) #24
Message was sent while issue was closed.
Change committed as 262374

Powered by Google App Engine
This is Rietveld 408576698