Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index fc88711df22933f5d4a521c384dd743ec5fb6732..44b235b4499700b97bebf62b6fb04b5f8b74daa9 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -3925,9 +3925,10 @@ void HTMLMediaElement::applyMediaFragmentURI() |
MediaPlayerClient::CORSMode HTMLMediaElement::mediaPlayerCORSMode() const |
{ |
- if (!fastHasAttribute(crossoriginAttr)) |
+ const AtomicString& crossOriginMode = fastGetAttribute(crossoriginAttr); |
+ if (crossOriginMode.isNull()) |
return Unspecified; |
- if (equalIgnoringCase(fastGetAttribute(crossoriginAttr), "use-credentials")) |
+ if (equalIgnoringCase(crossOriginMode, "use-credentials")) |
return UseCredentials; |
return Anonymous; |
} |