Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
| index ce1d0014e8917172c443e75e693f1f38c1171084..ece9679662aad41e214d277ed504ffe652068bb7 100644 |
| --- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
| +++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
| @@ -39,6 +39,7 @@ |
| #include "core/fetch/ResourceFetcher.h" |
| #include "core/fetch/ScriptResource.h" |
| #include "core/frame/LocalFrame.h" |
| +#include "core/frame/Settings.h" |
| #include "core/frame/SubresourceIntegrity.h" |
| #include "core/frame/UseCounter.h" |
| #include "core/frame/csp/ContentSecurityPolicy.h" |
| @@ -322,6 +323,9 @@ bool ScriptLoader::fetchScript(const String& sourceUrl, FetchRequest::DeferOptio |
| } |
| m_resource = ScriptResource::fetch(request, elementDocument->fetcher()); |
| + if (elementDocument->settings()) { |
| + m_resource->setV8CacheStrategiesForCacheStorage(elementDocument->settings()->v8CacheStrategiesForCacheStorage()); |
| + } |
|
falken
2016/04/27 08:07:37
no braces to be consistent with rest of file
horo
2016/04/27 08:15:36
Done.
|
| m_isExternalScript = true; |
| } |