| 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);
|
|
|
|
|