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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 439223005: Resources restored from CSS cache should be able to trigger InsecureContent messages (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 | « Source/core/fetch/ResourceFetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index a1b36a8b9af81a6cf0e9e5104461b72d48feeae3..680d0e1de7b16323cb46948bc61222e83b75e40f 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -1191,8 +1191,15 @@ void ResourceFetcher::garbageCollectDocumentResources()
m_documentResources.removeAll(resourcesToDelete);
}
+void ResourceFetcher::maybeNotifyInsecureContent(const Resource* resource) const
Mike West 2014/08/19 13:34:13 1. Why break this one-line call out into a separat
+{
+ // As a side effect browser will be notified.
+ checkInsecureContent(resource->type(), resource->lastResourceRequest().url(), resource->options().mixedContentBlockingTreatment);
+}
+
void ResourceFetcher::notifyLoadedFromMemoryCache(Resource* resource)
{
+ maybeNotifyInsecureContent(resource);
if (!frame() || !frame()->page() || resource->status() != Resource::Cached || m_validatedURLs.contains(resource->url()))
return;
« no previous file with comments | « Source/core/fetch/ResourceFetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698