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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp

Issue 1997833002: Don't keep a separate m_revalidatingRequest on Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/bindings/core/v8/ScriptStreamer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
index bc4fef05fec3eb30296e4ba499cc3924809bf2cc..9f84f52d299ace29b3aa90c510849078bb02be0d 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
@@ -653,13 +653,6 @@ bool ScriptStreamer::startStreamingInternal(PendingScript* script, Type scriptTy
recordNotStreamingReasonHistogram(scriptType, NotHTTP);
return false;
}
- if (resource->isCacheValidator()) {
Nate Chapin 2016/05/19 22:18:38 I think this this was a cache for the old way of r
yhirano 2016/05/23 11:40:38 It seems this branch was introduced at https://cod
yhirano 2016/05/24 11:18:51 I think this branch is needed because ScriptResour
Nate Chapin 2016/05/26 21:43:02 Ok, the lack of tests is annoying, but I agree tha
- recordNotStreamingReasonHistogram(scriptType, Reload);
- // This happens e.g., during reloads. We're actually not going to load
- // the current Resource of the PendingScript but switch to another
- // Resource -> don't stream.
- return false;
- }
// We cannot filter out short scripts, even if we wait for the HTTP headers
// to arrive: the Content-Length HTTP header is not sent for chunked
// downloads.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ImageResource.cpp » ('j') | third_party/WebKit/Source/core/fetch/Resource.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698