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 23e68227a2.
This commit is contained in:
yami
2019-08-01 02:18:45 +02:00
parent d80d5688e6
commit 3aeef88170
+1 -4
View File
@@ -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);
}
}