Index: chrome/content/ui/sendReport.js |
=================================================================== |
--- a/chrome/content/ui/sendReport.js |
+++ b/chrome/content/ui/sendReport.js |
@@ -312,19 +312,21 @@ var subscriptionsDataSource = |
callback(); |
} |
}; |
var remoteDataSource = |
{ |
collectData: function(outerWindowID, windowURI, browser, callback) |
{ |
- let dataCollector = require("dataCollector"); |
+ let {port} = require("messaging"); |
let screenshotWidth = screenshotDataSource.getWidth(); |
- dataCollector.collectData(outerWindowID, screenshotWidth, data => { |
+ port.emitWithResponse("collectData", {outerWindowID, screenshotWidth}) |
+ .then(data => |
+ { |
screenshotDataSource.setData(data && data.screenshot); |
framesDataSource.setData(windowURI, data && data.opener, data && data.referrer, data && data.frames); |
if (data && data.isPrivate) |
isPrivate = true; |
let element = reportElement("options"); |
appendElement(element, "option", {id: "privateBrowsing"}, isPrivate); |