This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
@@ -6,7 +6,7 @@
// call earlier functions). The code file can be processed
// with docco.js to provide clear documentation.
/* jshint moz: true */
/* jshint esversion: 6 */
/* global Components, console, XPCOMUtils */
// ### Abbreviations
@@ -91,19 +91,19 @@ tor.nonce = function() {
// Convert the tag to a hex string.
lettagStr="";
for(vari=0;i<tag.length;i++){
for(leti=0;i<tag.length;i++){
tagStr+=(tag[i]>>>4).toString(16);
tagStr+=(tag[i]&0x0F).toString(16);
}
returntagStr;
}
};
tor.newCircuitForDomain=function(domain){
// Re-generate the nonce for the domain.
tor.noncesForDomains[domain]=tor.nonce();
logger.eclog(3,"New domain isolation for "+domain+": "+tor.noncesForDomains[domain]);
}
};
// __tor.clearIsolation()_.
// Clear the isolation state cache, forcing new circuits to be used for all
@@ -115,7 +115,7 @@ tor.clearIsolation = function () {
// Force a rotation on the next catch-all circuit use by setting the creation
// time to the epoch.
tor.unknownDirtySince=0;
}
};
// __tor.isolateCircuitsByDomain()__.
// For every HTTPChannel, replaces the default SOCKS proxy with one that authenticates
@@ -124,29 +124,31 @@ tor.clearIsolation = function () {