rem:  if (!this.testing_) { this.navWatcher_ = new G_NavWatcher(); this.navWatcher_.registerListener("docnavstart", BindToObject(this.onDocNavStart, this)); } 
add: var wp = Ci.nsIWebProgress; var wpService = Cc["@mozilla.org/docloaderservice;1"].getService(wp); wpService.addProgressListener(this, wp.NOTIFY_STATE_REQUEST); 
context: function PROT_PhishingWarden() {  PROT_ListWarden.call(this);  this.debugZone = "phishwarden";  this.testing_ = false;  this.browserViews_ = [];  // Use this to query preferences  this.prefs_ = new G_Preferences();  // Only one displayer so far; perhaps we'll have others in the future  this.displayers_ = {    "afterload": PROT_PhishMsgDisplayer,  };  // We use this dude to do lookups on our remote server  this.fetcher_ = new PROT_TRFetcher();  // Register w/NavWatcher to hear notifications about requests for docs  if (!this.testing_) {    this.navWatcher_ = new G_NavWatcher();    this.navWatcher_.registerListener("docnavstart",                                       BindToObject(this.onDocNavStart,                                                    this));  }  // We need to know whether we're enabled and whether we're in advanced  // mode, so reflect the appropriate preferences into our state.  // Read state: should we be checking remote preferences?  var checkRemotePrefName = PROT_GlobalStore.getServerCheckEnabledPrefName();  this.checkRemote_ = this.prefs_.getPref(checkRemotePrefName, null);  // Get notifications when the remote check preference changes  var checkRemotePrefObserver = BindToObject(this.onCheckRemotePrefChanged,                                             this);  this.prefs_.addObserver(checkRemotePrefName, checkRemotePrefObserver);  // Global preference to enable the phishing warden  var phishWardenPrefName = PROT_GlobalStore.getPhishWardenEnabledPrefName();  this.phishWardenEnabled_ = this.prefs_.getPref(phishWardenPrefName, null);  // Get notifications when the phishing warden enabled pref changes  var phishWardenPrefObserver =     BindToObject(this.onPhishWardenEnabledPrefChanged, this);  this.prefs_.addObserver(phishWardenPrefName, phishWardenPrefObserver);  // We have a hardcoded URLs we let people navigate to in order to   // check out the warning.  this.testURLs_ = PROT_GlobalStore.getTestURLs();  G_Debug(this, "phishWarden initialized");}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/8219c5d9d750a28e06ea1ca8d7aee25af0c64a0f/phishing-warden.js/clean/browser/components/safebrowsing/content/phishing-warden.js