Skip to content

Commit afe0ff8

Browse files
committed
An experimental disablement of the nsIContentPolicy path
Hold onto your hats!
1 parent ae35cd0 commit afe0ff8

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
@@ -220,7 +220,7 @@ HTTPSEverywhere.prototype = {
220220
[ Components.interfaces.nsIObserver,
221221
Components.interfaces.nsIMyInterface,
222222
Components.interfaces.nsISupports,
223-
Components.interfaces.nsIContentPolicy,
223+
//Components.interfaces.nsIContentPolicy,
224224
Components.interfaces.nsISupportsWeakReference,
225225
Components.interfaces.nsIWebProgressListener,
226226
Components.interfaces.nsIWebProgressListener2,
@@ -477,7 +477,7 @@ HTTPSEverywhere.prototype = {
477477
// These implement the nsIContentPolicy API; they allow both yes/no answers
478478
// to "should this load?", but also allow us to change the thing.
479479

480-
shouldLoad: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aInternalCall) {
480+
/*shouldLoad: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aInternalCall) {
481481
if (aContentType == 11) {
482482
try {
483483
this.log(DBUG, "shouldLoad: "+aContentLocation.spec);
@@ -496,7 +496,7 @@ HTTPSEverywhere.prototype = {
496496
497497
shouldProcess: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeType, aExtra) {
498498
return this.shouldLoad(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeType, CP_SHOULDPROCESS);
499-
},
499+
},*/
500500

501501
get_prefs: function() {
502502
// get our preferences branch object

0 commit comments

Comments
 (0)