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

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

Issue 1468633002: DevTools: Prettify websocket frames preview on Network pane. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests. Created 5 years, 1 month 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/devtools/front_end/network/RequestPreviewView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
index 31b457117807d7a134f6bfa2cfc170c64fba41a6..47395a1be032faade74e168a23f2599b289736d8 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
@@ -86,13 +86,12 @@ WebInspector.RequestPreviewView.prototype = {
},
/**
- * @return {?WebInspector.RequestJSONView}
+ * @return {?WebInspector.JSONView}
*/
_jsonView: function()
{
- var content = this._requestContent();
- var parsedJSON = WebInspector.RequestJSONView.parseJSON(content);
- return parsedJSON ? new WebInspector.RequestJSONView(this.request, parsedJSON) : null;
+ var parsedJSON = WebInspector.JSONView.parseJSON(this._requestContent());
+ return parsedJSON && new WebInspector.JSONView(parsedJSON);
},
/**

Powered by Google App Engine
This is Rietveld 408576698