Index: third_party/WebKit/Source/core/fetch/ScriptResource.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp |
index 70bde66b86773d9cd451e68ce28aa8eac9a48146..a46786136dd1b16270ae24eee4a836d5ee3d079a 100644 |
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp |
@@ -121,4 +121,11 @@ bool ScriptResource::mustRefetchDueToIntegrityMetadata(const FetchRequest& reque |
return !IntegrityMetadata::setsEqual(m_integrityMetadata, request.integrityMetadata()); |
} |
+void ScriptResource::destroyDecodedDataIfPossible() |
+{ |
+ ResourceClientWalker<ScriptResourceClient> walker(clients()); |
+ while (ScriptResourceClient* client = walker.next()) |
+ client->notifyCancelStreamingTask(this); |
+} |
+ |
} // namespace blink |