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

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

Issue 2895563002: Naively implement WorkerFetchContext::ShouldBlockFetchByMixedContentCheck() (Closed)
Patch Set: Created 3 years, 7 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/WorkerFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp b/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
index cbda72d44c5e427ebc473ee644d909fd8fde02d2..9f21b6665a3165a2db2e9d5eefa2935a9790a0b4 100644
--- a/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
@@ -158,8 +158,10 @@ bool WorkerFetchContext::ShouldBlockFetchByMixedContentCheck(
const ResourceRequest& resource_request,
const KURL& url,
SecurityViolationReportingPolicy reporting_policy) const {
- // TODO(horo): Implement this.
- return false;
+ // TODO(horo): We need more detailed check which is implemented in
+ // MixedContentChecker::ShouldBlockFetch().
+ return MixedContentChecker::IsMixedContent(
+ worker_global_scope_->GetSecurityOrigin(), url);
}
std::unique_ptr<WebURLLoader> WorkerFetchContext::CreateURLLoader() {

Powered by Google App Engine
This is Rietveld 408576698