| Index: Source/core/workers/WorkerGlobalScope.cpp
|
| diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp
|
| index 911130450d29e40abff883018de4161cff8a2334..53ba4a2321fd73da421a55dd1475c4ef6f2ef884 100644
|
| --- a/Source/core/workers/WorkerGlobalScope.cpp
|
| +++ b/Source/core/workers/WorkerGlobalScope.cpp
|
| @@ -56,6 +56,7 @@
|
| #include "platform/network/ContentSecurityPolicyParsers.h"
|
| #include "platform/weborigin/KURL.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| +#include "public/platform/WebURLRequest.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -249,7 +250,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState
|
|
|
| for (Vector<KURL>::const_iterator it = completedURLs.begin(); it != end; ++it) {
|
| RefPtr<WorkerScriptLoader> scriptLoader(WorkerScriptLoader::create());
|
| - scriptLoader->setTargetType(ResourceRequest::TargetIsScript);
|
| + scriptLoader->setRequestContext(blink::WebURLRequest::RequestContextScript);
|
| scriptLoader->loadSynchronously(executionContext, *it, AllowCrossOriginRequests);
|
|
|
| // If the fetching attempt failed, throw a NetworkError exception and abort all these steps.
|
|
|