Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp

Issue 2056183002: Implement the `require-sri-for` CSP directive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated tests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
index 472928bcb1daacf8203b1bf48e18ea0ef76ec9fe..3e487ed48192256be75888e7212dfcdbb6a06479 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
@@ -46,7 +46,8 @@ bool InProcessWorkerBase::initialize(ExecutionContext* context, const String& ur
{
suspendIfNeeded();
- KURL scriptURL = resolveURL(url, exceptionState);
+ // TODO(mkwst): Revisit the context as https://drafts.css-houdini.org/worklets/ evolves.
+ KURL scriptURL = resolveURL(url, exceptionState, WebURLRequest::RequestContextScript);
if (scriptURL.isEmpty())
return false;
« no previous file with comments | « third_party/WebKit/Source/core/workers/AbstractWorker.cpp ('k') | third_party/WebKit/Source/core/workers/SharedWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698