Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: third_party/WebKit/Source/core/html/HTMLTrackElement.cpp

Issue 1487343002: Set credentials mode "same-origin" when crossOrigin=anonymous is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698