Skip to content

Commit a84c167

Browse files
committed
Fixes for Firefox Developer Edition (resolves EFForg#4195)
1. Refactor js one-liner to allow ssl observatory component to load 2. HTTPSEverywhere object can no longer be refernced directly from toolbar xul
1 parent 53aa7f9 commit a84c167

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/chrome/content/toolbar_button.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ function open_in_tab(url) {
396396
recentWindow.delayedOpenTab(url, null, null, null, null);
397397
}
398398

399+
function httpse_chrome_opener(url, prefs) {
400+
HTTPSEverywhere.chrome_opener(url, prefs);
401+
}
402+
399403
// hook event for showing hint
400404
HTTPSEverywhere.log(DBUG, 'Adding listener for toolbarButton init.');
401405
window.addEventListener("load", httpsEverywhere.toolbarButton.init, false);

src/chrome/content/toolbar_button.xul

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
<command id="https-everywhere-menuitem-viewAllRules"
6969
oncommand="open_in_tab('https://www.eff.org/https-everywhere/atlas/');" />
7070
<command id="https-everywhere-menuitem-about"
71-
oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/about.xul');" />
71+
oncommand="httpse_chrome_opener('chrome://https-everywhere/content/about.xul');" />
7272
<command id="https-everywhere-menuitem-observatory"
73-
oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/observatory-preferences.xul', 'chrome,centerscreen,resizable=yes');" />
73+
oncommand="httpse_chrome_opener('chrome://https-everywhere/content/observatory-preferences.xul', 'chrome,centerscreen,resizable=yes');" />
7474
<command id="https-everywhere-menuitem-donate-eff"
7575
oncommand="open_in_tab('https://www.eff.org/donate');" />
7676
<command id="https-everywhere-menuitem-donate-tor"

src/components/ssl-observatory.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,12 @@ SSLObservatory.prototype = {
313313
function toHexString(charCode) {
314314
return ("0" + charCode.toString(16)).slice(-2);
315315
}
316-
return [toHexString(h.charCodeAt(i)) for (i in h)].join("").toUpperCase();
316+
317+
var hexArr = [];
318+
for (i in h){
319+
hexArr.push(toHexString(h.charCodeAt(i)));
320+
}
321+
return hexArr.join("").toUpperCase();
317322
},
318323

319324
ourFingerprint: function(cert) {

0 commit comments

Comments
 (0)