toolkit/components/protection
This would contain code for downloading and managing url
blacklist and whitelist data. Specifically, it would
include ListManager and TRTables described here:
http://wiki.mozilla.org/Safe_Browsing:_Design_Documentation#Major_Abstractions
and use the wire format described here:
http://wiki.mozilla.org/Safe_Browsing:_Design_Documentation#The_Server_Side
browser/components/protection
This would contain code for monitoring HTTP requests, comparing
urls to the blacklists/whitelists, and displaying the warning dialog:
http://wiki.mozilla.org/Safe_Browsing:_Design_Documentation#Warning_Dialog_UI
The specific URLs that the ListManager uses would be left as user prefs
and the Google branding elements of the warning dialog would be removed.
I will try to get this change ready by alpha 2. For alpha 2, the URL to
fetch blacklist/whitelist data will be left blank while we figure out a
good way to configure data providers.
Feedback welcome.
Tony
This sounds like a great plan to me. I know that Thunderbird would
likely be interested in leveraging the toolkit/ component. You should
probably post to mozilla.dev.platform as well to inform platform
people, who may not be watching this list, of this proposal.
Cheers,
-Darin
Is there an IDL interface for these components? That might be worth
defining, too.
-Ben
Will do.
Tony
Tony,
This sounds great and is something I've been thinking about too. I wrote down some *very* rough thoughts about how I could try to leverage the anti-phishing extension over in Thunderbird (http://wiki.mozilla.org/Thunderbird2:Phishing). toolkit/components/protection sounds like a great spot for the blacklist and white list management code as it allows any toolkit app to access the lists.
If I can help assist in this project, feel free to let me know. I also wouldn't mind helping out with the interface definition for interacting with the black list and white list tables.
Thanks for tackling this problem.
-Scott