Index: third_party/WebKit/Source/core/html/HTMLTrackElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp b/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp |
index 692af721c533bc8f575c19a01157d1f49506cb3d..07e7acf1c3d054c8ac4c0c7fc83bdebb5edc26a6 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp |
@@ -30,6 +30,7 @@ |
#include "core/dom/Document.h" |
#include "core/events/Event.h" |
#include "core/frame/csp/ContentSecurityPolicy.h" |
+#include "core/html/CrossOriginAttribute.h" |
#include "core/html/HTMLMediaElement.h" |
#include "core/html/track/LoadableTextTrack.h" |
#include "platform/Logging.h" |
@@ -213,7 +214,7 @@ void HTMLTrackElement::loadTimerFired(Timer<HTMLTrackElement>*) |
m_loader->cancelLoad(); |
m_loader = TextTrackLoader::create(*this, document()); |
- if (!m_loader->load(m_url, corsMode)) |
+ if (!m_loader->load(m_url, crossOriginAttributeValue(corsMode))) |
didCompleteLoad(Failure); |
} |