summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryami <34216515+kn-yami@users.noreply.github.com>2019-08-01 02:18:45 +0200
committeryami <34216515+kn-yami@users.noreply.github.com>2019-08-01 02:18:45 +0200
commit3aeef88170dc6071f99d2351955ad4ee92bc83d1 (patch)
treed832e15e71ac8a3f3badcf009e7c1cfe4e98e96f
parentd80d5688e6177d81513aa5b4d55cb479220c85b0 (diff)
downloadUXP-3aeef88170dc6071f99d2351955ad4ee92bc83d1.tar
UXP-3aeef88170dc6071f99d2351955ad4ee92bc83d1.tar.gz
UXP-3aeef88170dc6071f99d2351955ad4ee92bc83d1.tar.lz
UXP-3aeef88170dc6071f99d2351955ad4ee92bc83d1.tar.xz
UXP-3aeef88170dc6071f99d2351955ad4ee92bc83d1.zip
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.
-rw-r--r--devtools/client/jsonview/converter-child.js5
1 files changed, 1 insertions, 4 deletions
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);
}
}