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

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

Issue 2231523002: Make ResourceFetcher return Resources with LoadError instead of nullptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment from japhet@. Created 4 years, 3 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 0f767c7707b65a68cc3db550b3d3aed72a16ccf8..368c79922f65f373ee148961b5e82400c03cd130 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -199,7 +199,7 @@ Resource* DocumentLoader::startPreload(Resource::Type type, FetchRequest& reques
NOTREACHED();
}
- if (resource)
+ if (resource && !resource->resourceError().isAccessCheck())
Nate Chapin 2016/09/22 18:30:44 Here and in XMLHttpRequest.cpp, we should probably
engedy 2016/09/30 16:03:15 Done. Please let me know if the information I put
fetcher()->preloadStarted(resource);
return resource;
}

Powered by Google App Engine
This is Rietveld 408576698