| Index: third_party/WebKit/Source/devtools/front_end/network/JSONView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/JSONView.js b/third_party/WebKit/Source/devtools/front_end/network/JSONView.js
|
| index 72cabe1b7ecbb2bf7e12f27f4fa5c383c982997b..2b77d450986d5a854c62876400d9fe032e887ce1 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/network/JSONView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/network/JSONView.js
|
| @@ -76,16 +76,16 @@ Network.JSONView = class extends UI.VBox {
|
| returnObj = Network.JSONView._extractJSON(/** @type {string} */ (text));
|
| if (!returnObj)
|
| return Promise.resolve(/** @type {?Network.ParsedJSON} */ (null));
|
| - return Common.formatterWorkerPool.runTask('relaxedJSONParser', {content: returnObj.data}).then(handleReturnedJSON);
|
| + return Common.formatterWorkerPool.parseJSONRelaxed(returnObj.data).then(handleReturnedJSON);
|
|
|
| /**
|
| - * @param {?MessageEvent} event
|
| + * @param {*} data
|
| * @return {?Network.ParsedJSON}
|
| */
|
| - function handleReturnedJSON(event) {
|
| - if (!event || !event.data)
|
| + function handleReturnedJSON(data) {
|
| + if (!data)
|
| return null;
|
| - returnObj.data = event.data;
|
| + returnObj.data = data;
|
| return returnObj;
|
| }
|
| }
|
|
|