[TabGuard] Stop exempting domains bidirectionally by default.
This commit is contained in:
parent
3cd1a6049d
commit
db06a6a252
|
@ -36,16 +36,18 @@ var TabGuard = (() => {
|
|||
};
|
||||
forget();
|
||||
|
||||
function mergeGroups(groups, {tabDomain, otherDomains} /* anonymizedTabInfo */) {
|
||||
if (!(tabDomain in groups)) groups[tabDomain] = new Set();
|
||||
let currentGroup = groups[tabDomain];
|
||||
function mergeGroups(groups,
|
||||
{tabDomain, otherDomains}, /* anonymizedTabInfo */
|
||||
bidirectional = false) {
|
||||
const currentGroup = groups[tabDomain] || (groups[tabDomain] = new Set());
|
||||
for (let d of otherDomains) {
|
||||
if (!(d in groups)) groups[d] = new Set();
|
||||
// add this domain to the allow/block group of the other tied ones...
|
||||
groups[d].add(tabDomain);
|
||||
// ... and vice-versa
|
||||
currentGroup.add(d);
|
||||
}
|
||||
if (bidirectional) {
|
||||
for (let d of otherDomains) {
|
||||
(groups[d] || (groups[d] = new Set())).add(tabDomain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const AUTH_HEADERS_RX = /^(?:authorization|cookie)/i;
|
||||
|
|
Loading…
Reference in New Issue