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

Unified Diff: Source/devtools/front_end/network/RequestPreviewView.js

Issue 654083006: DevTools: NetworkPanel: use optimistic JSON parser for response preview. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/devtools/front_end/network/RequestJSONView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/network/RequestPreviewView.js
diff --git a/Source/devtools/front_end/network/RequestPreviewView.js b/Source/devtools/front_end/network/RequestPreviewView.js
index 72818261f3ee956ff93b9f4cb47ddd99b86449f0..86819997269e121fa93d72c3f8dcafe7ce3957af 100644
--- a/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/Source/devtools/front_end/network/RequestPreviewView.js
@@ -81,7 +81,10 @@ WebInspector.RequestPreviewView.prototype = {
*/
_jsonView: function()
{
- var parsedJSON = WebInspector.RequestJSONView.parseJSON(this.request.content || "");
+ var request = this.request;
+ var content = request.content;
+ content = request.contentEncoded ? window.atob(content || "") : (content || "");
+ var parsedJSON = WebInspector.RequestJSONView.parseJSON(content);
return parsedJSON ? new WebInspector.RequestJSONView(this.request, parsedJSON) : null;
},
« no previous file with comments | « Source/devtools/front_end/network/RequestJSONView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698