Skip to content

Commit 8fe4da4

Browse files
author
funkydude
committed
Expand use of trivial_cookie_name_c
Rules that set the cookie name as "." should also use the trivial_cookie_name_c const.
1 parent 97ba10e commit 8fe4da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Exclusion(pattern) {
4444
function CookieRule(host, cookiename) {
4545
this.host_c = new RegExp(host);
4646

47-
if (cookiename === ".*" || cookiename === ".+") {
47+
if (cookiename === ".*" || cookiename === ".+" || cookiename === ".") {
4848
// About 50% of cookie rules trivially match any name.
4949
this.name_c = trivial_cookie_name_c;
5050
} else {

0 commit comments

Comments
 (0)