Browse Source

code review

pull/2/head
gorhill 10 years ago
parent
commit
8c506d4d73
  1. 6
      platform/firefox/vapi-background.js

6
platform/firefox/vapi-background.js

@ -1958,8 +1958,12 @@ vAPI.cookies.getAll = function(callback) {
var onAsync = function() { var onAsync = function() {
var out = []; var out = [];
var enumerator = Services.cookies.enumerator; var enumerator = Services.cookies.enumerator;
var ffcookie;
while ( enumerator.hasMoreElements() ) { 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); callback(out);
}; };

Loading…
Cancel
Save