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 c0329ed50f6170b690c1381ef045511b71bd8a1f..ed39c2c9e8dab8ea007dcfeb8bd74717b17dc255 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; |
} |