| Index: Source/core/workers/WorkerScriptLoader.cpp
|
| diff --git a/Source/core/workers/WorkerScriptLoader.cpp b/Source/core/workers/WorkerScriptLoader.cpp
|
| index d0530d3dcfc395f4eda0c4448161e656822f70a0..35567c467596ff6a04aa2a59302add6c74d5a15c 100644
|
| --- a/Source/core/workers/WorkerScriptLoader.cpp
|
| +++ b/Source/core/workers/WorkerScriptLoader.cpp
|
| @@ -33,7 +33,7 @@
|
| #include "core/loader/TextResourceDecoder.h"
|
| #include "core/loader/WorkerThreadableLoader.h"
|
| #include "core/platform/network/ResourceResponse.h"
|
| -#include "core/workers/WorkerContext.h"
|
| +#include "core/workers/WorkerGlobalScope.h"
|
| #include "core/workers/WorkerScriptLoaderClient.h"
|
|
|
| #include <wtf/OwnPtr.h>
|
| @@ -63,7 +63,7 @@ void WorkerScriptLoader::loadSynchronously(ScriptExecutionContext* scriptExecuti
|
| if (!request)
|
| return;
|
|
|
| - ASSERT_WITH_SECURITY_IMPLICATION(scriptExecutionContext->isWorkerContext());
|
| + ASSERT_WITH_SECURITY_IMPLICATION(scriptExecutionContext->isWorkerGlobalScope());
|
|
|
| ThreadableLoaderOptions options;
|
| options.allowCredentials = AllowStoredCredentials;
|
| @@ -72,7 +72,7 @@ void WorkerScriptLoader::loadSynchronously(ScriptExecutionContext* scriptExecuti
|
| // FIXME: Should we add EnforceScriptSrcDirective here?
|
| options.contentSecurityPolicyEnforcement = DoNotEnforceContentSecurityPolicy;
|
|
|
| - WorkerThreadableLoader::loadResourceSynchronously(static_cast<WorkerContext*>(scriptExecutionContext), *request, *this, options);
|
| + WorkerThreadableLoader::loadResourceSynchronously(static_cast<WorkerGlobalScope*>(scriptExecutionContext), *request, *this, options);
|
| }
|
|
|
| void WorkerScriptLoader::loadAsynchronously(ScriptExecutionContext* scriptExecutionContext, const KURL& url, CrossOriginRequestPolicy crossOriginRequestPolicy, WorkerScriptLoaderClient* client)
|
|
|