Index: Source/WebKit/mac/WebView/WebFullScreenController.mm |
=================================================================== |
--- Source/WebKit/mac/WebView/WebFullScreenController.mm (revision 92737) |
+++ Source/WebKit/mac/WebView/WebFullScreenController.mm (working copy) |
@@ -736,7 +736,7 @@ |
Node* nextNode = _element.get(); |
while (nextNode) |
{ |
- if (nextNode->hasTagName(HTMLNames::videoTag)) { |
+ if (nextNode->hasTagName(HTMLNames::videoTag) && static_cast<Element*>(nextNode)->isMediaElement()) { |
HTMLMediaElement* element = static_cast<HTMLMediaElement*>(nextNode); |
if (!element->paused() && !element->ended()) |
return YES; |