Skip to content

Commit cbb007f

Browse files
committed
HTTPS E v3's semantics are to show the popup to all users
1 parent aeefe39 commit cbb007f

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/Changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Torbutton transitioning to "always on" (we now detect a local Tor instance
66
on port 9050 and use it)
77
https://trac.torproject.org/projects/tor/ticket/6541
8+
* Fix some other bugs in the Observatory proxy-wrangling code
89
* Disable broken/buggy rulesets: Voxel, Mapquest, Imgur, Justin.tv,
910
F-Secure, Valve, SpringFiles, openDesktop, syllabushare, Playboy, FAZ
1011
* Fixes / Improvements: Eloqua, OpenDNS, Mashable, News Corp, Sony, Yahoo!,

src/components/https-everywhere.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -503,17 +503,15 @@ HTTPSEverywhere.prototype = {
503503
// again.
504504
var shown = ssl_observatory.myGetBoolPref("popup_shown");
505505
var enabled = ssl_observatory.myGetBoolPref("enabled");
506-
if (!shown && !enabled) {
507-
var that = this;
508-
ssl_observatory.registerProxyTestNotification(function(result) {
509-
if (result) {
510-
that.log(INFO, "Got positivie proxy test. Displaying observatory popup.");
511-
that.chrome_opener("chrome://https-everywhere/content/observatory-popup.xul");
512-
} else {
513-
that.log(INFO, "Got negative proxy test. Not displaying observatory popup.");
514-
}
515-
});
516-
}
506+
var that = this;
507+
var obs_popup_callback = function(result) {
508+
if (result) that.log(INFO, "Got positive proxy test.");
509+
else that.log(INFO, "Got negative proxy text.");
510+
// We are now ready to show the popup in its most informative state
511+
that.chrome_opener("chrome://https-everywhere/content/observatory-popup.xul");
512+
};
513+
if (!shown && !enabled)
514+
ssl_observatory.registerProxyTestNotification(obs_popup_callback);
517515
}
518516
return;
519517
},

0 commit comments

Comments
 (0)