>       for each (let url in ["https://identi.ca";, "http://identi.ca";])
> {
>         for each (let login in passwordManager.findLogins({}, url, "",
> "")) {
>           let {username} = login;
>           if (username in usersFound) continue;
>           usersFound[username] = true;
>           list.push(CmdUtils.makeSugg(username, null, login));
>         }
>       }

Yes, this is more of a javascript question than a ubiquity one.  But
here's a hint, and maybe you can find help in other forums too:

var urls = ["https://identi.ca";, "http://identi.ca";];
for (url in urls) {
    var logins = passwordManager.findLogins({}, url, "", "");
    for (login in logins) {
        var x = logins[login];
        console.log(x); /* this line is so you can see it the result
of the two loops in Firebug if you want */
        /* do stuff with url and login */
    }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to