mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-03 17:55:47 +01:00
Fix Sanitizer.iterCookies(null).
This commit is contained in:
@@ -187,7 +187,7 @@ const Sanitizer = Module("sanitizer", tmp.Sanitizer, {
|
|||||||
|
|
||||||
iterCookies: function iterCookies(host) {
|
iterCookies: function iterCookies(host) {
|
||||||
for (let c in iter(services.get("cookies")))
|
for (let c in iter(services.get("cookies")))
|
||||||
if (!host || util.isSubdomain(c.QueryInterface(Ci.nsICookie2).rawHost, host))
|
if (c.QueryInterface(Ci.nsICookie2) && !host || util.isSubdomain(c.rawHost, host))
|
||||||
yield c;
|
yield c;
|
||||||
},
|
},
|
||||||
iterPermissions: function iterPermissions(host) {
|
iterPermissions: function iterPermissions(host) {
|
||||||
|
|||||||
Reference in New Issue
Block a user