commit d233cc61a6224ca9beb20249586b9bc2977440b6
Author: David Fifield <[email protected]>
Date:   Sat Mar 15 10:32:29 2014 -0700

    Do QueryInterface.
    
    Without it, I got this error in the error console:
    
    Error: (intermediate value).QueryInterface is not a function
    Source File: resource://gre/modules/XPCOMUtils.jsm
    Line: 271
---
 firefox/components/main.js |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/firefox/components/main.js b/firefox/components/main.js
index 9db0e7e..dd22dca 100644
--- a/firefox/components/main.js
+++ b/firefox/components/main.js
@@ -32,6 +32,11 @@ MeekHTTPHelper.prototype = {
     classID: Components.ID("{e7bc2b9c-f454-49f3-a19f-14848a4d871d}"),
     contractID: "@bamsoftware.com/meek-http-helper;1",
 
+    // 
https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/XPCOMUtils.jsm#generateQI%28%29
+    QueryInterface: XPCOMUtils.generateQI([
+        Components.interfaces.nsIServerSocketListener,
+    ]),
+
     // nsIServerSocketListener implementation.
     onSocketAccepted: function(aServ, aTransport) {
         dump("onSocketAccepted host " + aTransport.host + "\n");



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to