mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-01 06:51:27 +00:00
Remove referrers when opening a link in a new private window.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user