From 3aeef88170dc6071f99d2351955ad4ee92bc83d1 Mon Sep 17 00:00:00 2001 From: yami <34216515+kn-yami@users.noreply.github.com> Date: Thu, 1 Aug 2019 02:18:45 +0200 Subject: Issue #1138 - Part 4: fix JSON Viewer save functionality Saving JSON from the viewer was broken, because the message passed to the `saveToFile` function contained unneeded data. This bug was introduced by 23e68227a2e3f3946fa4fd5589f338e6b36a6e56. --- devtools/client/jsonview/converter-child.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'devtools') diff --git a/devtools/client/jsonview/converter-child.js b/devtools/client/jsonview/converter-child.js index 1be342474..65327c395 100644 --- a/devtools/client/jsonview/converter-child.js +++ b/devtools/client/jsonview/converter-child.js @@ -252,11 +252,8 @@ function onContentMessage(e) { break; case "save": - // The window ID is needed when the JSON Viewer is inside an iframe. - let windowID = win.QueryInterface(Ci.nsIInterfaceRequestor) - .getInterface(Ci.nsIDOMWindowUtils).outerWindowID; childProcessMessageManager.sendAsyncMessage( - "devtools:jsonview:save", {url: value, windowID: windowID}); + "devtools:jsonview:save", value); } } -- cgit v1.2.3