Skip to content

Commit 079318f

Browse files
committed
Fix Conflicts after merging with v5.2.4
1 parent 72b2423 commit 079318f

5 files changed

Lines changed: 27 additions & 43 deletions

File tree

install-dev-dependencies.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ if type apt-get >/dev/null ; then
1717
BROWSERS="iceweasel chromium"
1818
CHROMEDRIVER="chromedriver"
1919
fi
20-
<<<<<<< HEAD
21-
sudo apt-get install -y libxml2-dev libxml2-utils libxslt1-dev python-dev \
22-
$BROWSERS zip sqlite3 python-pip libcurl4-openssl-dev xvfb \
23-
=======
2420
$SUDO_SHIM apt-get install libxml2-dev libxml2-utils libxslt1-dev \
2521
python-dev $BROWSERS zip sqlite3 python-pip libcurl4-openssl-dev xvfb \
26-
>>>>>>> effRelease
2722
libssl-dev git $CHROMEDRIVER
2823
elif type brew >/dev/null ; then
2924
brew list python &>/dev/null || brew install python

src/chrome/content/code/HTTPSRules.js

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,32 +121,32 @@ RuleSet.prototype = {
121121
log: function(level, msg) {
122122
https_everywhereLog(level, msg);
123123
},
124-
124+
125125
wouldMatch: function(hypothetical_uri, alist) {
126126
// return true if this ruleset would match the uri, assuming it were http
127127
// used for judging moot / inactive rulesets
128128
// alist is optional
129-
129+
130130
// if the ruleset is already somewhere in this applicable list, we don't
131131
// care about hypothetical wouldMatch questions
132132
if (alist && (this.name in alist.all)) return false;
133-
133+
134134
this.log(DBUG,"Would " +this.name + " match " +hypothetical_uri.spec +
135135
"? serial " + (alist && alist.serial));
136-
136+
137137
var uri = hypothetical_uri.clone();
138138
if (uri.scheme == "https") uri.scheme = "http";
139139
var urispec = uri.spec;
140140

141141
this.ensureCompiled();
142142

143-
if (this.ruleset_match_c && !this.ruleset_match_c.test(urispec))
143+
if (this.ruleset_match_c && !this.ruleset_match_c.test(urispec))
144144
return false;
145145

146-
for (var i = 0; i < this.exclusions.length; ++i)
146+
for (var i = 0; i < this.exclusions.length; ++i)
147147
if (this.exclusions[i].pattern_c.test(urispec)) return false;
148148

149-
for (var i = 0; i < this.rules.length; ++i)
149+
for (var i = 0; i < this.rules.length; ++i)
150150
if (this.rules[i].from_c.test(urispec)) return true;
151151
return false;
152152
},
@@ -156,7 +156,7 @@ RuleSet.prototype = {
156156
// inactive, return 0; otherwise, return a fresh uri instance
157157
// for the target
158158
var newurl = this.apply(uri.spec);
159-
if (null == newurl)
159+
if (null == newurl)
160160
return null;
161161
var newuri = Components.classes["@mozilla.org/network/standard-url;1"].
162162
createInstance(CI.nsIStandardURL);
@@ -269,10 +269,7 @@ const RuleWriter = {
269269

270270
return data.value;
271271
},
272-
<<<<<<< HEAD
273-
=======
274272

275-
>>>>>>> effRelease
276273
readFromFile: function(file) {
277274
if (!file.exists())
278275
return null;
@@ -499,7 +496,7 @@ const HTTPSRules = {
499496
// the new uri if there was a rewrite. Now it returns a JS object with a
500497
// newuri attribute and an applied_ruleset attribute (or null if there's
501498
// no rewrite).
502-
var i = 0;
499+
var i = 0;
503500
userpass_present = false; // Global so that sanitiseURI can tweak it.
504501
// Why does JS have no tuples, again?
505502
var blob = {}; blob.newuri = null;
@@ -523,13 +520,13 @@ const HTTPSRules = {
523520
if (alist && rs[i].wouldMatch(uri, alist))
524521
alist.inactive_rule(rs[i]);
525522
continue;
526-
}
523+
}
527524
blob.newuri = rs[i].transformURI(uri);
528525
if (blob.newuri) {
529526
if (alist) {
530-
if (uri.spec in https_everywhere_blacklist)
527+
if (uri.spec in https_everywhere_blacklist)
531528
alist.breaking_rule(rs[i]);
532-
else
529+
else
533530
alist.active_rule(rs[i]);
534531
}
535532
if (userpass_present) blob.newuri.userPass = input_uri.userPass;
@@ -541,7 +538,7 @@ const HTTPSRules = {
541538
// requests are going over https
542539
if (rs[i].wouldMatch(uri, alist)) alist.moot_rule(rs[i]);
543540
continue;
544-
}
541+
}
545542
}
546543
return null;
547544
},
@@ -557,7 +554,7 @@ const HTTPSRules = {
557554
uri = input_uri.clone();
558555
userpass_present = true; // tweaking a global in our caller :(
559556
uri.userPass = null;
560-
}
557+
}
561558
} catch(e) {}
562559

563560
// example.com. is equivalent to example.com
@@ -567,7 +564,7 @@ const HTTPSRules = {
567564
try {
568565
var h = uri.host;
569566
if (h.charAt(h.length - 1) == ".") {
570-
while (h.charAt(h.length - 1) == ".")
567+
while (h.charAt(h.length - 1) == ".")
571568
h = h.slice(0,-1);
572569
uri = uri.clone();
573570
uri.host = h;
@@ -760,7 +757,7 @@ const HTTPSRules = {
760757
nonce_path = nonce_path + nonce_path;
761758
var test_uri = "http://" + domain + nonce_path;
762759
} catch (e) {
763-
this.log(WARN, "explosion in safeToSecureCookie for " + domain + "\n"
760+
this.log(WARN, "explosion in safeToSecureCookie for " + domain + "\n"
764761
+ "(" + e + ")");
765762
return false;
766763
}

src/components/https-everywhere.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const WHERE_UNTRUSTED = 1;
9292
const WHERE_TRUSTED = 2;
9393
const ANYWHERE = 3;
9494

95-
const N_COHORTS = 1000;
95+
const N_COHORTS = 1000;
9696

9797
const DUMMY_OBJ = {};
9898
DUMMY_OBJ.wrappedJSObject = DUMMY_OBJ;
@@ -146,7 +146,7 @@ function HTTPSEverywhere() {
146146
// we rewrite.
147147
this.obsService = CC["@mozilla.org/observer-service;1"]
148148
.getService(Components.interfaces.nsIObserverService);
149-
149+
150150
if (this.prefs.getBoolPref("globalEnabled")) {
151151
this.obsService.addObserver(this, "profile-before-change", false);
152152
this.obsService.addObserver(this, "profile-after-change", false);
@@ -180,10 +180,10 @@ In recent versions of Firefox and HTTPS Everywhere, the call stack for performin
180180
1. HTTPSEverywhere.shouldIgnoreURI() checks for very quick reasons to ignore a
181181
request, such as redirection loops, non-HTTP[S] URIs, and OCSP
182182
183-
2. HTTPS.replaceChannel()
183+
2. HTTPS.replaceChannel()
184+
185+
3. HTTPSRules.rewrittenURI()
184186
185-
3. HTTPSRules.rewrittenURI()
186-
187187
4. HTTPSRules.potentiallyApplicableRulesets uses <target host=""> elements to identify relevant rulesets
188188
189189
foreach RuleSet:
@@ -468,11 +468,7 @@ HTTPSEverywhere.prototype = {
468468
loadOCSPList: function() {
469469
try {
470470
var loc = "chrome://https-everywhere/content/code/commonOCSP.json";
471-
<<<<<<< HEAD
472-
var data = this.rw.readFromFile(loc);
473-
=======
474471
var data = this.rw.readFromUrl(loc);
475-
>>>>>>> effRelease
476472
this.ocspList = JSON.parse(data);
477473
} catch(e) {
478474
this.log(WARN, "Failed to load OCSP list: " + e);
@@ -633,7 +629,7 @@ HTTPSEverywhere.prototype = {
633629
// This variable is used for gradually turning on features for testing and
634630
// scalability purposes. It is a random integer [0,N_COHORTS) generated
635631
// once and stored thereafter.
636-
//
632+
//
637633
// This is not currently used/called in the development branch
638634
var cohort;
639635
try {
@@ -701,18 +697,18 @@ HTTPSEverywhere.prototype = {
701697
},
702698

703699
chrome_opener: function(uri, args) {
704-
// we don't use window.open, because we need to work around TorButton's
700+
// we don't use window.open, because we need to work around TorButton's
705701
// state control
706702
args = args || 'chrome,centerscreen';
707703
return CC['@mozilla.org/appshell/window-mediator;1']
708-
.getService(CI.nsIWindowMediator)
704+
.getService(CI.nsIWindowMediator)
709705
.getMostRecentWindow('navigator:browser')
710706
.open(uri,'', args );
711707
},
712708

713709
tab_opener: function(uri) {
714710
var gb = CC['@mozilla.org/appshell/window-mediator;1']
715-
.getService(CI.nsIWindowMediator)
711+
.getService(CI.nsIWindowMediator)
716712
.getMostRecentWindow('navigator:browser')
717713
.gBrowser;
718714
var tab = gb.addTab(uri);
@@ -806,7 +802,7 @@ function https_everywhereLog(level, str) {
806802
prefs = HTTPSEverywhere.instance.get_prefs();
807803
econsole = Components.classes["@mozilla.org/consoleservice;1"]
808804
.getService(Components.interfaces.nsIConsoleService);
809-
}
805+
}
810806
try {
811807
var threshold = prefs.getIntPref(LLVAR);
812808
} catch (e) {

src/install.rdf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
<em:multiprocessCompatible>true</em:multiprocessCompatible>
1414
<em:homepageURL>https://www.eff.org/https-everywhere</em:homepageURL>
1515
<em:iconURL>chrome://https-everywhere/skin/icon-active-48.png</em:iconURL>
16-
<<<<<<< HEAD
17-
<em:unpack>false</em:unpack> <!-- Required for Firefox 4 -->
18-
=======
1916
<em:unpack>false</em:unpack>
20-
>>>>>>> effRelease
2117
<em:updateURL>https://www.eff.org/files/https-everywhere-eff-update-2048.rdf</em:updateURL> <!-- 2015-08-14: New update URL to go with new id (https-everywhere-eff@ef.org) -->
2218
<em:updateKey>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6MR8W/galdxnpGqBsYbqOzQb2eyW15YFjDDEMI0ZOzt8f504obNs920lDnpPD2/KqgsfjOgw2K7xWDJIj/18xUvWPk3LDkrnokNiRkA3KOx3W6fHycKL+zID7zy+xZYBuh2fLyQtWV1VGQ45iNRp9+Zo7rH86cdfgkdnWTlNSHyTLW9NbXvyv/E12bppPcEvgCTAQXgnDVJ0/sqmeiijn9tTFh03aM+R2V/21h8aTraAS24qiPCz6gkmYGC8yr6mglcnNoYbsLNYZ69zF1XHcXPduCPdPdfLlzVlKK1/U7hkA28eG3BIAMh6uJYBRJTpiGgaGdPd7YekUB8S6cy+CQIDAQAB</em:updateKey>
2319
<!-- Firefox -->

translations

Submodule translations updated from ed50c7d to ca800ae

0 commit comments

Comments
 (0)