[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torbutton/master] Bug 5856: Disable JS hooks for 10.0.8-ESR.
commit 0c062520a45178cd5f85a7ec366def98a1be86df
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Tue Oct 9 14:38:34 2012 -0700
Bug 5856: Disable JS hooks for 10.0.8-ESR.
We have a direct patch for TBB now, and a backported fix to 10.0.8-ESR broke our
hooks anyways.
---
src/chrome/content/torbutton.js | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 1f82836..e629102 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -24,6 +24,7 @@ var m_tb_ff35 = false;
var m_tb_ff36 = false;
var m_tb_ff4 = false;
var m_tb_ff15 = false;
+var m_tb_ff10_8 = false;
var m_tb_tbb = false;
var m_tb_control_port = null;
@@ -526,6 +527,13 @@ function torbutton_init() {
m_tb_ff15 = false;
}
+ if(versionChecker.compare(appInfo.version, "10.0.8") >= 0
+ && versionChecker.compare(appInfo.version, "11.0a1") < 0) {
+ m_tb_ff10_8 = true;
+ } else {
+ m_tb_ff10_8 = false;
+ }
+
if(versionChecker.compare(appInfo.version, "4.0a1") >= 0) {
m_tb_ff4 = true;
} else {
@@ -4709,8 +4717,9 @@ function torbutton_update_tags(win, new_loc) {
// Bug 1506 P1: All of our JS hooks should be redone in patch form (#5856)
// Also, tagging can be deprecated.
function torbutton_hookdoc(win, doc, state_change, referrer) {
- /* Firefox 15 broke the last of our JS hooks :/ */
- if (m_tb_ff15) {
+ /* Firefox 15 broke the last of our JS hooks.
+ * So did 10.0.8-ESR... */
+ if (m_tb_ff15 || m_tb_ff10_8) {
return;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits