Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 6bbaa55e159f88b6aba19211a46898769f8962ff..86a83ffb66a8f67e32f3e08b5ef2050adb459236 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -2881,6 +2881,7 @@ KURL HTMLMediaElement::selectNextSourceChild(ContentType* contentType, String* k |
if (node->parentNode() != this) |
continue; |
+ UseCounter::count(document(), UseCounter::SourceElementCandidate); |
source = toHTMLSourceElement(node); |
// If candidate does not have a src attribute, or if its src attribute's value is the empty string ... jump down to the failed step below |
@@ -2899,8 +2900,10 @@ KURL HTMLMediaElement::selectNextSourceChild(ContentType* contentType, String* k |
if (shouldLog) |
LOG(Media, "HTMLMediaElement::selectNextSourceChild - 'media' is %s", source->media().utf8().data()); |
#endif |
- if (!screenEval.eval(media.get())) |
+ if (!screenEval.eval(media.get())) { |
+ UseCounter::count(document(), UseCounter::SourceElementNonMatchingMedia); |
goto check_again; |
+ } |
} |
type = source->type(); |