Index: Source/core/loader/TextTrackLoader.cpp |
diff --git a/Source/core/loader/TextTrackLoader.cpp b/Source/core/loader/TextTrackLoader.cpp |
index 60fa74f9fb5f1bea1576ba54ec5de567e9cce85b..6d00a0ec87e9b842d6de9aedb6480ea997318c8d 100644 |
--- a/Source/core/loader/TextTrackLoader.cpp |
+++ b/Source/core/loader/TextTrackLoader.cpp |
@@ -32,6 +32,7 @@ |
#include "core/fetch/CrossOriginAccessControl.h" |
#include "core/fetch/FetchRequest.h" |
#include "core/fetch/ResourceFetcher.h" |
+#include "core/inspector/ConsoleMessage.h" |
#include "platform/Logging.h" |
#include "platform/SharedBuffer.h" |
#include "platform/weborigin/SecurityOrigin.h" |
@@ -85,7 +86,7 @@ void TextTrackLoader::dataReceived(Resource* resource, const char* data, int len |
void TextTrackLoader::corsPolicyPreventedLoad(SecurityOrigin* securityOrigin, const KURL& url) |
{ |
String consoleMessage("Text track from origin '" + SecurityOrigin::create(url)->toString() + "' has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. Origin '" + securityOrigin->toString() + "' is therefore not allowed access."); |
- m_document.addConsoleMessage(SecurityMessageSource, ErrorMessageLevel, consoleMessage); |
+ m_document.addConsoleMessage(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, consoleMessage)); |
m_state = Failed; |
} |