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

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

Issue 1913993004: [Devtools] Fix to XMLView in Network Preview panel broken (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/network/network-choose-preview-view-expected.txt ('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/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 c09084858f60b23a5b83d39d81f8ac866edc3435..5c77d9ee6aacc72c2ff05f885ed370fc90bd6c6a 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
@@ -148,8 +148,10 @@ WebInspector.RequestPreviewView.prototype = {
}
var xmlView = this._xmlView();
- if (xmlView)
- return xmlView;
+ if (xmlView) {
+ callback(xmlView);
+ return;
+ }
WebInspector.JSONView.parseJSON(this._requestContent()).then(chooseView.bind(this)).then(callback);
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/network/network-choose-preview-view-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698