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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp

Issue 2685543002: Support data URLs in worker constructors (Closed)
Patch Set: Implemented Pass 2 code review suggestions. Removed external/wpt/workers/data-url.html from the lis… Created 3 years, 10 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/loader/DocumentThreadableLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
index 9605409849a948ef11239b905b97e7a8f933e8c4..3851ffcf81003a45982e4422cee8f5cc6eba10d4 100644
--- a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
@@ -112,6 +112,7 @@ bool IsNoCORSAllowedContext(
case WebURLRequest::RequestContextFavicon:
case WebURLRequest::RequestContextImage:
case WebURLRequest::RequestContextScript:
+ case WebURLRequest::RequestContextWorker:
return true;
case WebURLRequest::RequestContextPlugin:
return skipServiceWorker == WebURLRequest::SkipServiceWorker::All;

Powered by Google App Engine
This is Rietveld 408576698