mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Remove referrers when opening a link in a new private window.
This commit is contained in:
parent
86150717d6
commit
667cdd5e24
1 changed files with 6 additions and 0 deletions
|
|
@ -258,6 +258,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) {
|
||||
aNoReferrer = true;
|
||||
}
|
||||
|
||||
// This propagates to window.arguments.
|
||||
var sa = Cc["@mozilla.org/array;1"].
|
||||
createInstance(Ci.nsIMutableArray);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue