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

Issue 2730853002: Add UMA logging to track bad MIME types passed to HTMLMediaElement (Closed)

Created:
3 years, 9 months ago by jrummell
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA logging to track bad MIME types passed to HTMLMediaElement It would be nice to change HTMLMediaElement to use ParsedContentType when checking MIME types passed to it. However, it currently uses ContentType which is not properly spec compliant. Adding a UMA to determine how much real world usage actually provides MIME types that don't parse according to RFC 2045. BUG=674329 TEST=media layout tests pass Review-Url: https://codereview.chromium.org/2730853002 Cr-Commit-Position: refs/heads/master@{#462782} Committed: https://chromium.googlesource.com/chromium/src/+/9049bebd837e0af0c1e9cba1669779c14978ccf4

Patch Set 1 #

Total comments: 1

Patch Set 2 : changes (+rebase) #

Total comments: 2

Patch Set 3 : changes (+rebase) #

Patch Set 4 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -15 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 11 chunks +57 lines, -13 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
jrummell
WDYT? This simply adds a UMA to report if ParsedContentType would fail parsing the MIME ...
3 years, 9 months ago (2017-03-03 04:13:43 UTC) #2
DaleCurtis
idea sgtm, not familiar with how the histograms work in Blink so defer to WebKit ...
3 years, 9 months ago (2017-03-03 17:57:50 UTC) #3
jrummell
Just noticed an issue, so noting it here. https://codereview.chromium.org/2730853002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2730853002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode312 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:312: MIMETypeRegistry::IsSupported; ...
3 years, 9 months ago (2017-03-03 21:52:48 UTC) #4
jrummell
+mlamouri@ for OWNERS review.
3 years, 9 months ago (2017-03-14 21:40:17 UTC) #6
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2730853002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2730853002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode284 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:284: bool canLoadURL(const KURL& url, const String& contentType) { ...
3 years, 9 months ago (2017-03-16 12:00:35 UTC) #11
jrummell
+jwd@ for OWNERS review of histograms.xml https://codereview.chromium.org/2730853002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2730853002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode284 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:284: bool canLoadURL(const KURL& ...
3 years, 9 months ago (2017-03-17 17:40:35 UTC) #13
jwd
lgtm
3 years, 9 months ago (2017-03-21 14:08:48 UTC) #18
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/2730853002/60001
3 years, 8 months ago (2017-04-07 03:10:59 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 05:54:22 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9049bebd837e0af0c1e9cba16697...

Powered by Google App Engine
This is Rietveld 408576698