@@ -246,8 +246,7 @@ HTTPSEverywhere.prototype = {
246246 QueryInterface : XPCOMUtils . generateQI (
247247 [ Components . interfaces . nsIObserver ,
248248 Components . interfaces . nsISupports ,
249- Components . interfaces . nsISupportsWeakReference ,
250- Components . interfaces . nsIChannelEventSink ] ) ,
249+ Components . interfaces . nsISupportsWeakReference ] ) ,
251250
252251 wrappedJSObject : null , // Initialized by constructor
253252
@@ -642,45 +641,6 @@ HTTPSEverywhere.prototype = {
642641 return cohort ;
643642 } ,
644643
645- // nsIChannelEventSink implementation
646- // XXX This was here for rewrites in the past. Do we still need it?
647- onChannelRedirect : function ( oldChannel , newChannel , flags ) {
648- const uri = newChannel . URI ;
649- this . log ( DBUG , "Got onChannelRedirect to " + uri . spec ) ;
650- if ( ! ( newChannel instanceof CI . nsIHttpChannel ) ) {
651- this . log ( DBUG , newChannel + " is not an instance of nsIHttpChannel" ) ;
652- return ;
653- }
654- var alist = this . juggleApplicableListsDuringRedirection ( oldChannel , newChannel ) ;
655- HTTPS . replaceChannel ( alist , newChannel , this . httpNowhereEnabled ) ;
656- } ,
657-
658- juggleApplicableListsDuringRedirection : function ( oldChannel , newChannel ) {
659- // If the new channel doesn't yet have a list of applicable rulesets, start
660- // with the old one because that's probably a better representation of how
661- // secure the load process was for this page
662- var browser = this . getBrowserForChannel ( oldChannel ) ;
663- var old_alist = null ;
664- if ( browser )
665- old_alist = this . getExpando ( browser , "applicable_rules" ) ;
666- browser = this . getBrowserForChannel ( newChannel ) ;
667- if ( ! browser ) return null ;
668- var new_alist = this . getExpando ( browser , "applicable_rules" ) ;
669- if ( old_alist && ! new_alist ) {
670- new_alist = old_alist ;
671- this . setExpando ( browser , "applicable_rules" , new_alist ) ;
672- } else if ( ! new_alist ) {
673- new_alist = new ApplicableList ( this . log , browser . currentURI ) ;
674- this . setExpando ( browser , "applicable_rules" , new_alist ) ;
675- }
676- return new_alist ;
677- } ,
678-
679- asyncOnChannelRedirect : function ( oldChannel , newChannel , flags , callback ) {
680- this . onChannelRedirect ( oldChannel , newChannel , flags ) ;
681- callback . onRedirectVerifyCallback ( 0 ) ;
682- } ,
683-
684644 get_prefs : function ( prefBranch ) {
685645 if ( ! prefBranch ) prefBranch = PREFBRANCH_ROOT ;
686646
0 commit comments