1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 00:05:08 +12:00

code review

This commit is contained in:
gorhill 2015-05-09 08:40:32 -04:00
parent 04f160efba
commit 8c506d4d73

View file

@ -1958,8 +1958,12 @@ vAPI.cookies.getAll = function(callback) {
var onAsync = function() {
var out = [];
var enumerator = Services.cookies.enumerator;
var ffcookie;
while ( enumerator.hasMoreElements() ) {
out.push(new this.CookieEntry(enumerator.getNext().QueryInterface(Ci.nsICookie)));
ffcookie = enumerator.getNext();
if ( ffcookie instanceof Ci.nsICookie ) {
out.push(new this.CookieEntry(ffcookie));
}
}
callback(out);
};