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

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

Issue 1942683006: [Devtools] XMLView now searchable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FIND_IN_JSON_FINAL
Patch Set: Fixed nit 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/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 f7896b9d371404689d2c66ea4a617c705e23c04e..61e2137d40792383e7d7e1630e23f6393512eb7f 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
@@ -121,13 +121,12 @@ WebInspector.RequestPreviewView.prototype = {
},
/**
- * @return {?WebInspector.XMLView}
+ * @return {?WebInspector.SearchableView}
*/
_xmlView: function()
{
- var content = this._requestContent();
- var parsedXML = WebInspector.XMLView.parseXML(content, this.request.mimeType);
- return parsedXML ? new WebInspector.XMLView(parsedXML) : null;
+ var parsedXML = WebInspector.XMLView.parseXML(this._requestContent(), this.request.mimeType);
+ return parsedXML ? WebInspector.XMLView.createSearchableView(parsedXML) : null;
},
/**

Powered by Google App Engine
This is Rietveld 408576698