We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a6c2ae commit e524a85Copy full SHA for e524a85
chromium/rules.js
@@ -240,12 +240,14 @@ RuleSets.prototype = {
240
while (hostname.charAt(0) == ".")
241
hostname = hostname.slice(1);
242
243
+ if (!knownHttps && !this.safeToSecureCookie(hostname)) {
244
+ return null;
245
+ }
246
+
247
var rs = this.potentiallyApplicableRulesets(hostname);
248
for (var i = 0; i < rs.length; ++i) {
249
var ruleset = rs[i];
250
if (ruleset.active) {
- if (!knownHttps && !this.safeToSecureCookie(hostname))
- continue;
251
for (var j = 0; j < ruleset.cookierules.length; j++) {
252
var cr = ruleset.cookierules[j];
253
if (cr.host_c.test(cookie.domain) && cr.name_c.test(cookie.name)) {
0 commit comments