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

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

Issue 2400723005: Revert of Cache SubResourceIntegrity checks at Resource (patchset #2 id:20001 of https://codereview… (Closed)
Patch Set: Created 4 years, 2 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/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
index c801e88de64a6073afa00caddc625e8cb737293e..86dd768cf188192259897d2c31b182c6612a9847 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
@@ -765,14 +765,15 @@ ResourceFetcher::determineRevalidationPolicy(Resource::Type type,
return Load;
// Checks if the resource has an explicit policy about integrity metadata.
+ // Currently only applies to ScriptResources.
//
- // This is necessary because ScriptResource and CSSStyleSheetResource objects
- // do not keep the raw data around after the source is accessed once, so if
- // the resource is accessed from the MemoryCache for a second time, there is
- // no way to redo an integrity check.
+ // This is necessary because ScriptResource objects do not keep the raw data
+ // around after the source is accessed once, so if the resource is accessed
+ // from the MemoryCache for a second time, there is no way to redo an
+ // integrity check.
//
// Thus, Blink implements a scheme where it caches the integrity information
- // for those resources after the first time it is checked, and if there is
+ // for a ScriptResource after the first time it is checked, and if there is
// another request for that resource, with the same integrity metadata, Blink
// skips the integrity calculation. However, if the integrity metadata is a
// mismatch, the MemoryCache must be skipped here, and a new request for the
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.cpp ('k') | third_party/WebKit/Source/core/fetch/ScriptResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698