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

Issue 2681993002: EME: Allow case-insensitive parameter names in media MIME types (Closed)

Created:
3 years, 10 months ago by jrummell
Modified:
3 years, 10 months ago
Reviewers:
xhwang
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, haraken, feature-media-reviews_chromium.org, blink-reviews, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

EME: Allow case-insensitive parameter names in media MIME types According to RFC 2045, "All media type values, subtype values, and parameter names as defined are case-insensitive." Switch requestMediaKeySystemAccess() to use ContentType, which is not case-sensitive. Added new test that should fail. Prior to this change it would pass as the CODECS="foo" would be ignored, and it would look like a container only MIME type, which is allowed. BUG=605661 TEST=new test fails as expected Review-Url: https://codereview.chromium.org/2681993002 Cr-Commit-Position: refs/heads/master@{#449169} Committed: https://chromium.googlesource.com/chromium/src/+/c5784d408a464915895f9b47385df377a555032e

Patch Set 1 #

Total comments: 18

Patch Set 2 : changes #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -14 lines) Patch
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html View 1 1 chunk +17 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp View 1 2 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
jrummell
PTAL. Adds a test as well.
3 years, 10 months ago (2017-02-08 00:34:54 UTC) #3
xhwang
Nice fix! I only have a few comments on comments :) Otherwise, LGTM https://codereview.chromium.org/2681993002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html File ...
3 years, 10 months ago (2017-02-08 06:15:24 UTC) #4
jrummell
Thanks for the review. https://codereview.chromium.org/2681993002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html (right): https://codereview.chromium.org/2681993002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html#newcode247 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html:247: // contentType is not case ...
3 years, 10 months ago (2017-02-08 21:10:14 UTC) #5
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/2681993002/20001
3 years, 10 months ago (2017-02-08 21:14:18 UTC) #11
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-08 22:53:03 UTC) #13
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/2681993002/40001
3 years, 10 months ago (2017-02-08 23:06:23 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 01:00:48 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c5784d408a464915895f9b47385d...

Powered by Google App Engine
This is Rietveld 408576698