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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageValue.cpp

Issue 2168903002: Set request context when restoring cached CSSImageValue resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/css/resources/image-value-via-https.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSImageValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageValue.cpp b/third_party/WebKit/Source/core/css/CSSImageValue.cpp
index 074de6916f273e87ef2abf6ba2258986d2ba3675..059d7460a5e6c26b961dc4cf79fc2775e15415bc 100644
--- a/third_party/WebKit/Source/core/css/CSSImageValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageValue.cpp
@@ -90,6 +90,7 @@ void CSSImageValue::restoreCachedResourceIfNeeded(Document& document) const
return;
FetchRequest request(ResourceRequest(m_absoluteURL), m_initiatorName.isEmpty() ? FetchInitiatorTypeNames::css : m_initiatorName, resource->options());
+ request.mutableResourceRequest().setRequestContext(WebURLRequest::RequestContextImage);
MixedContentChecker::shouldBlockFetch(document.frame(), resource->lastResourceRequest(),
resource->lastResourceRequest().url(), MixedContentChecker::SendReport);
document.fetcher()->requestLoadStarted(resource->identifier(), resource, request, ResourceFetcher::ResourceLoadingFromCache);
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/css/resources/image-value-via-https.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698