Remove referrers when opening a link in a new private window.

This commit is contained in:
Pale Moon
2017-12-07 01:35:31 +01:00
committed by Roy Tam
parent 5ff9d873cd
commit 359bbc8edb
+6
View File
@@ -240,6 +240,12 @@ function openLinkIn(url, where, params) {
}
if (!w || where == "window") {
// Strip referrer data when opening a new private window, to prevent
// regular browsing data from leaking into it.
if (aIsPrivate) {
aReferrerURI = "";
}
var sa = Cc["@mozilla.org/supports-array;1"].
createInstance(Ci.nsISupportsArray);