function PROT_CookieStripper(channel) {
  this.debugZone = "cookiestripper";
  this.topic_ = "http-on-modify-request";
  this.channel_ = channel;

  var Cc = Components.classes;
  var Ci = Components.interfaces;
  this.observerService_ = Cc["@mozilla.org/observer-service;1"]
                          .getService(Ci.nsIObserverService);
  this.observerService_.addObserver(this, this.topic_, false);

  // If the request doesn't issue, don't hang around forever
  var twentySeconds = 20 * 1000;
  this.alarm_ = new G_Alarm(BindToObject(this.stopObserving, this), 
                            twentySeconds);
}
/**
 * This class knows how to strip cookies from an HTTP request. It
 * listens for http-on-modify-request, and modifies the request
 * accordingly. We can't do this using xmlhttprequest.setHeader() or
 * nsIChannel.setRequestHeader() before send()ing because the cookie
 * service is called after send().
 * 
 * @param channel nsIChannel in which the request is happening
 * @constructor
 */
This class knows how to strip cookies from an HTTP request. It
listens for http-on-modify-request, and modifies the request
accordingly. We can't do this using xmlhttprequest.setHeader() or
nsIChannel.setRequestHeader() before send()ing because the cookie
service is called after send().

@param channel nsIChannel in which the request is happening
@constructor
This class knows how to strip cookies from an HTTP request . It listens for http - on - modify - request and modifies the request accordingly . We can ' t do this using xmlhttprequest . setHeader () or nsIChannel . setRequestHeader () before send () ing because the cookie service is called after send () . @param channel nsIChannel in which the request is happening @constructor
function PROT_CookieStripper(channel) {
  this.debugZone = "cookiestripper";
  this.topic_ = "http-on-modify-request";
  this.channel_ = channel;
  var Cc = Components.classes;
  var Ci = Components.interfaces;
  this.observerService_ = Cc["@mozilla.org/observer-service;1"]
                          .getService(Ci.nsIObserverService);
  this.observerService_.addObserver(this, this.topic_, false);
  var twentySeconds = 20 * 1000;
  this.alarm_ = new G_Alarm(BindToObject(this.stopObserving, this), 
                            twentySeconds);
}
function PROT_CookieStripper ( channel ) { this . debugZone = "cookiestripper" ; this . topic_ = "http-on-modify-request" ; this . channel_ = channel ; var Cc = Components . classes ; var Ci = Components . interfaces ; this . observerService_ = Cc [ "@mozilla.org/observer-service;1" ] . getService ( Ci . nsIObserverService ) ; this . observerService_ . addObserver ( this , this . topic_ , false ) ; var twentySeconds = 20 * 1000 ; this . alarm_ = new G_Alarm ( BindToObject ( this . stopObserving , this ) , twentySeconds ) ; }
This class knows how to strip cookies from an HTTP request.
This class knows how to strip cookies from an HTTP request .
// If the request doesn't issue, don't hang around forever