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 db77967ab6c8f5ebb6d4107d8bf7a8d0ce5d5860..d54daaaf746fbd5a2a6a3fed6f48fa6960c3e6ca 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; |
} |