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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2736623002: Revert "Do not reuse a loading resource associated with another fetcher"
Patch Set: rebase 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/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index e17a24a7547d7b7344346c6ae243950ca2102002..29a920e43746f598238a862babad527fe2244870 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -821,14 +821,6 @@ ResourceFetcher::DetermineRevalidationPolicy(Resource::Type type,
if (!existing_resource)
return kLoad;
- // If the existing resource is loading and the associated fetcher is not equal
- // to |this|, we must not use the resource. Otherwise, CSP violation may
- // happen in redirect handling.
- if (existing_resource->Loader() &&
- existing_resource->Loader()->Fetcher() != this) {
- return kReload;
- }
-
// Checks if the resource has an explicit policy about integrity metadata.
//
// This is necessary because ScriptResource and CSSStyleSheetResource objects

Powered by Google App Engine
This is Rietveld 408576698