[tor-commits] [flashproxy/master] Add Firefox 11 to have_websocket_binary_frames().

dcf at torproject.org dcf at torproject.org
Sun Nov 10 08:12:36 UTC 2013


commit 46a148d479c412daca0ac4fc5dfc55a9f1252004
Author: Arlo Breault <arlolra at gmail.com>
Date:   Sat Nov 2 10:36:16 2013 -0700

    Add Firefox 11 to have_websocket_binary_frames().
---
 proxy/flashproxy-test.js |    2 ++
 proxy/flashproxy.js      |    1 +
 2 files changed, 3 insertions(+)

diff --git a/proxy/flashproxy-test.js b/proxy/flashproxy-test.js
index e775f53..976fd44 100755
--- a/proxy/flashproxy-test.js
+++ b/proxy/flashproxy-test.js
@@ -324,6 +324,8 @@ function test_lang_keys() {
 
 function test_have_websocket_binary_frames() {
     var TESTS = [
+        { ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:10.0.2) Gecko/20100101 Firefox/10.0.2", expected: false },
+        { ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:11.0) Gecko/20100101 Firefox/11.0", expected: true },
         { ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36", expected: true },
         { ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1", expected: true },
         { expected: false },  // no userAgent
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index fad3b7e..8353fe0 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -435,6 +435,7 @@ function have_websocket_binary_frames() {
     browsers = [
       { idString: "Chrome",  verString: "Chrome",  version: 16 },
       { idString: "Safari",  verString: "Version", version: 6  },
+      { idString: "Firefox", verString: "Firefox", version: 11 }
     ];
 
     for (var i = 0; i < browsers.length; i++) {





More information about the tor-commits mailing list