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

Issue 2736283002: Allow ParsedContentType to reject multiple definitions of the same parameter (Closed)

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

Description

Allow ParsedContentType to reject multiple definitions of the same parameter The code in ParsedContentType is based on RFC2045, which does not mention what should happen if the same parameter name is mentioned multiple times. However, RFC6838 (Media Type Specifications and Registration Procedures), which defines the MIME types for media and is based on RFC2045/2046, has the following statement: It is an error for a specific parameter to be specified more than once. Add an option to have ParsedContentType fail if the same parameter is specified multiple times. navigator.requestMediaKeySystemAccess() is updated to reject MIME types that mention the same parameter name more than once. BUG=698436 TEST=new tests pass Review-Url: https://codereview.chromium.org/2736283002 Cr-Commit-Position: refs/heads/master@{#456167} Committed: https://chromium.googlesource.com/chromium/src/+/5f918117c5bfed1b2f5cd8d2bab14a895814db8f

Patch Set 1 #

Total comments: 2

Patch Set 2 : check first #

Messages

Total messages: 19 (8 generated)
jrummell
PTAL.
3 years, 9 months ago (2017-03-08 19:03:08 UTC) #2
xhwang
lgtm
3 years, 9 months ago (2017-03-08 21:43:22 UTC) #3
xhwang
BTW, since you have went through all related RFCs, could you provide some more context ...
3 years, 9 months ago (2017-03-08 21:48:27 UTC) #4
yhirano
https://codereview.chromium.org/2736283002/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.cpp File third_party/WebKit/Source/platform/network/ParsedContentType.cpp (right): https://codereview.chromium.org/2736283002/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.cpp#newcode270 third_party/WebKit/Source/platform/network/ParsedContentType.cpp:270: DCHECK(keyString.containsOnlyASCII()); Please have this DCHECK before calling lower() (Also ...
3 years, 9 months ago (2017-03-09 08:26:38 UTC) #5
jrummell
Updated. https://codereview.chromium.org/2736283002/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.cpp File third_party/WebKit/Source/platform/network/ParsedContentType.cpp (right): https://codereview.chromium.org/2736283002/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.cpp#newcode270 third_party/WebKit/Source/platform/network/ParsedContentType.cpp:270: DCHECK(keyString.containsOnlyASCII()); On 2017/03/09 08:26:38, yhirano (slow) wrote: > ...
3 years, 9 months ago (2017-03-10 02:27:02 UTC) #7
yhirano
lgtm
3 years, 9 months ago (2017-03-10 09:04:57 UTC) #8
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/2736283002/20001
3 years, 9 months ago (2017-03-10 18:56:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/383029)
3 years, 9 months ago (2017-03-10 19:05:59 UTC) #13
haraken
owner LGTM
3 years, 9 months ago (2017-03-10 19:09:08 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/2736283002/20001
3 years, 9 months ago (2017-03-10 20:53:15 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 21:33:17 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5f918117c5bfed1b2f5cd8d2bab1...

Powered by Google App Engine
This is Rietveld 408576698