27
edits
Changes
m
→Client
http://developer.mozilla.org/wiki-images/en/7/7b/Antiphishingui.png
=== Extension Client (code in Firefox) ===
The extension is written purely in JavaScript for portability and rapid development reasons. It client code is object-oriented and relies heavily on closures and custom JS abstractions (as it has must, given the lack of standard js libraries).
Before getting into specifics, let's clarify some nomenclature. A ''browser window'' is a user-visible browser window, aka the object corresponding to browser.xul's <code><window></code> onto which we overlay. A ''tabbed browser'' is an object corresponding to a <code><tabbrowser></code> tag, of which there is one per browser window. A ''browser'' is a tab, one of potentially many browsers within a tabbed browser.