Index: Source/WebCore/html/HTMLMediaElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLMediaElement.cpp (revision 119992) |
+++ Source/WebCore/html/HTMLMediaElement.cpp (working copy) |
@@ -4385,6 +4385,15 @@ |
} |
+MediaPlayerClient::CORSMode HTMLMediaElement::mediaPlayerCORSMode() const |
+{ |
+ if (!fastHasAttribute(HTMLNames::crossoriginAttr)) |
+ return Unspecified; |
+ if (equalIgnoringCase(fastGetAttribute(HTMLNames::crossoriginAttr), "use-credentials")) |
+ return UseCredentials; |
+ return Anonymous; |
+} |
+ |
void HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture() |
{ |
m_restrictions = NoRestrictions; |