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

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

Issue 2834733003: Separate preaload matching from MemoryCache (Closed)
Patch Set: fix 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 eed357ee0d184eb69b8ab5758411a31b53e12206..269cda641ca8534347aed6da3e75979e27a48f42 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