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

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

Issue 2834733003: Separate preaload matching from MemoryCache (Closed)
Patch Set: rebase Created 3 years, 8 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/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index d7ba41c24132cdaa211c341f26ef04d69ac5a41b..3856ebf7c52e1fa53bb7b885852107475d1e3b23 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -217,11 +217,6 @@ Resource* DocumentLoader::StartPreload(Resource::Type type,
NOTREACHED();
}
- // CSP layout tests verify that preloads are subject to access checks by
- // seeing if they are in the `preload started` list. Therefore do not add
- // them to the list if the load is immediately denied.
- if (resource && !resource->GetResourceError().IsAccessCheck())
- Fetcher()->PreloadStarted(resource);
return resource;
}

Powered by Google App Engine
This is Rietveld 408576698