Index: lib/child/dataCollector.js |
=================================================================== |
--- a/lib/child/dataCollector.js |
+++ b/lib/child/dataCollector.js |
@@ -19,16 +19,17 @@ |
* @fileOverview Collects some data for a content window, to be attached to |
* issue reports. |
*/ |
"use strict"; |
let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); |
let {Task} = Cu.import("resource://gre/modules/Task.jsm", {}); |
+let {PrivateBrowsingUtils} = Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm", {}); |
let {Utils} = require("utils"); |
addMessageListener("AdblockPlus:CollectData", onCollectData); |
onShutdown.add(() => { |
removeMessageListener("AdblockPlus:CollectData", onCollectData); |
}); |
@@ -54,16 +55,17 @@ function onCollectData(message) |
} |
let window = Services.wm.getOuterWindowWithId(outerWindowID); |
if (window) |
{ |
Task.spawn(function*() |
{ |
let data = {}; |
+ data.isPrivate = PrivateBrowsingUtils.isContentWindowPrivate(window); |
data.opener = window.opener ? window.opener.location.href : null; |
data.referrer = window.document.referrer; |
data.frames = yield scanFrames(window); |
data.screenshot = yield createScreenshot(window, screenshotWidth); |
return data; |
}).then(success, error); |
} |
} |