Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index a33aed3b5c949a868eaa02573c07bbd64856c2c3..7f11f138d8f1a76eaf396d4e489a30bc6b48d484 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -585,6 +585,9 @@ HTMLMediaElement::NetworkState HTMLMediaElement::networkState() const |
String HTMLMediaElement::canPlayType(const String& mimeType, const String& keySystem) const |
{ |
+ if (!keySystem.isNull()) |
+ UseCounter::count(document(), UseCounter::CanPlayTypeKeySystem); |
+ |
WebMimeRegistry::SupportsType support = supportsType(ContentType(mimeType), keySystem); |
String canPlay; |