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

Unified Diff: third_party/WebKit/Source/core/loader/resource/LinkFetchResource.cpp

Issue 2855163002: Avoid sending mixed-content requests for ImageSet contexts (Closed)
Patch Set: Better check and a test 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/resource/LinkFetchResource.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/LinkFetchResource.cpp b/third_party/WebKit/Source/core/loader/resource/LinkFetchResource.cpp
index be4334d74d09f43abd0aeacf3ba572e02b08d0a4..869583a131dbf2fd5a412ef31371c027deaa7008 100644
--- a/third_party/WebKit/Source/core/loader/resource/LinkFetchResource.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/LinkFetchResource.cpp
@@ -15,7 +15,8 @@ Resource* LinkFetchResource::Fetch(Resource::Type type,
DCHECK_EQ(type, kLinkPrefetch);
DCHECK_EQ(params.GetResourceRequest().GetFrameType(),
WebURLRequest::kFrameTypeNone);
- params.SetRequestContext(fetcher->DetermineRequestContext(type));
+ params.SetRequestContext(fetcher->DetermineRequestContext(
+ type, ResourceFetcher::kImageNotImageSet));
return fetcher->RequestResource(params, LinkResourceFactory(type));
}

Powered by Google App Engine
This is Rietveld 408576698