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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2848353003: [Devtools] Fixed resource having no content if from xhr blob (Closed)
Patch Set: [Devtools] Fixed resource having no content if from xhr blob 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
index c96fd4fa5cd65042bc8f646ddf8faa2c7696cc2b..f1a481c35159f7e7e681a17b4c27445fcb4b7625 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
@@ -1284,8 +1284,7 @@ void InspectorNetworkAgent::getResponseBody(
return;
}
- // XHR with ResponseTypeBlob should be returned as blob.
- if (resource_data->XhrReplayData() && CanGetResponseBodyBlob(request_id)) {
+ if (CanGetResponseBodyBlob(request_id)) {
GetResponseBodyBlob(request_id, std::move(callback));
return;
}
@@ -1323,11 +1322,6 @@ void InspectorNetworkAgent::getResponseBody(
}
}
- if (CanGetResponseBodyBlob(request_id)) {
- GetResponseBodyBlob(request_id, std::move(callback));
- return;
- }
-
callback->sendFailure(
Response::Error("No data found for resource with given identifier"));
}
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698