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 4fe466a1e3365114b62d904d65eb9760a5b2bdd0..4413a04aaa5683d7490c5172e5794569c344205d 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); |
} |