Index: lib/child/utils.js |
=================================================================== |
--- a/lib/child/utils.js |
+++ b/lib/child/utils.js |
@@ -34,16 +34,22 @@ let getFrames = exports.getFrames = func |
location: window.location.href, |
sitekey: null |
}; |
let documentElement = window.document && window.document.documentElement; |
if (documentElement) |
frame.sitekey = documentElement.getAttribute("data-adblockkey") |
- if (window == window.parent) |
- frame.privateBrowsing = PrivateBrowsingUtils.isWindowPrivate(window); |
- |
frames.push(frame); |
window = (window != window.parent ? window.parent : null); |
} |
return frames; |
-} |
+}; |
+ |
+/** |
+ * Checks whether Private Browsing mode is enabled for a content window. |
+ * @return {Boolean} |
+ */ |
+let isPrivate = exports.isPrivate = function(/**Window*/ window) |
+{ |
+ return PrivateBrowsingUtils.isWindowPrivate(window); |
+}; |