Skip to content

Commit 445aa51

Browse files
committed
An experimental disablement of the nsIContentPolicy path
Hold onto your hats!
1 parent eb212b2 commit 445aa51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/https-everywhere.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ HTTPSEverywhere.prototype = {
221221
[ Components.interfaces.nsIObserver,
222222
Components.interfaces.nsIMyInterface,
223223
Components.interfaces.nsISupports,
224-
Components.interfaces.nsIContentPolicy,
224+
//Components.interfaces.nsIContentPolicy,
225225
Components.interfaces.nsISupportsWeakReference,
226226
Components.interfaces.nsIWebProgressListener,
227227
Components.interfaces.nsIWebProgressListener2,
@@ -489,7 +489,7 @@ HTTPSEverywhere.prototype = {
489489
// These implement the nsIContentPolicy API; they allow both yes/no answers
490490
// to "should this load?", but also allow us to change the thing.
491491

492-
shouldLoad: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aInternalCall) {
492+
/*shouldLoad: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aInternalCall) {
493493
if (aContentType == 11) {
494494
try {
495495
this.log(DBUG, "shouldLoad: "+aContentLocation.spec);
@@ -508,7 +508,7 @@ HTTPSEverywhere.prototype = {
508508
509509
shouldProcess: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeType, aExtra) {
510510
return this.shouldLoad(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeType, CP_SHOULDPROCESS);
511-
},
511+
},*/
512512

513513
get_prefs: function() {
514514
// get our preferences branch object

0 commit comments

Comments
 (0)