1 parent ddee9d0 commit 3642460Copy full SHA for 3642460
1 file changed
chromium/rules.js
@@ -7,6 +7,7 @@ function log(){}
7
const trivial_rule_to = "https:";
8
const trivial_rule_from_c = new RegExp("^http:");
9
const trivial_cookie_name_c = new RegExp(".*");
10
+const trivial_cookie_host_c = new RegExp(".*");
11
12
/**
13
* A single rule
@@ -43,7 +44,8 @@ function Exclusion(pattern) {
43
44
*/
45
function CookieRule(host, cookiename) {
46
if (host === ".*" || host === ".+" || host === ".") {
- this.host_c = trivial_cookie_name_c;
47
+ // Some cookie rules trivially match any host.
48
+ this.host_c = trivial_cookie_host_c;
49
} else {
50
this.host_c = new RegExp(host);
51
}
0 commit comments