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

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: Fixed webkit_unit_tests. Fixed most layout tests, rebaselineing rest. 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..946f282f11f502df5cbe70c8e44f6028784efe2d 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->errorOccurred() && resource->resourceError().isAccessCheck()))
Nate Chapin 2016/09/21 23:23:41 I don't know if this is too cute, but you don't st
engedy 2016/09/22 13:30:03 Done.
fetcher()->preloadStarted(resource);
return resource;
}

Powered by Google App Engine
This is Rietveld 408576698