| Index: Source/core/loader/TextTrackLoader.cpp
|
| diff --git a/Source/core/loader/TextTrackLoader.cpp b/Source/core/loader/TextTrackLoader.cpp
|
| index 6694ce60dff418bea9289ac9a551c7cf325f060a..79cb4f22d98c5a60467b2efe366be27d3bcffdde 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.");
|
| - document().addConsoleMessage(SecurityMessageSource, ErrorMessageLevel, consoleMessage);
|
| + document().addConsoleMessage(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, consoleMessage));
|
| m_state = Failed;
|
| }
|
|
|
|
|